#include "mst_state.hpp"
◆ contains()
| bool iroha::MstState::contains |
( |
const DataType & |
element | ) |
const |
Check, if this MST state contains that element
- Parameters
-
- Returns
- true, if state contains the element, false otherwise
◆ empty()
Create empty state
- Parameters
-
| log | - the logger to use in the new object |
| completer | - strategy for determine completed and expired batches |
- Returns
- empty mst state
◆ eraseByTransactionHash()
Erase batch by transaction hash
◆ eraseExpired()
| void iroha::MstState::eraseExpired |
( |
const TimeType & |
current_time | ) |
|
Erase expired batches
- Parameters
-
| current_time | - current time |
◆ extractExpired()
Erase and return expired batches
- Parameters
-
| current_time | - current time |
- Returns
- state with expired batches
◆ getBatches()
- Returns
- the batches from the state
◆ isEmpty()
| bool iroha::MstState::isEmpty |
( |
| ) |
const |
- Returns
- true, if there is no batches inside
◆ iterateBatches()
template<typename Visitor >
| void iroha::MstState::iterateBatches |
( |
const Visitor & |
visitor | ) |
const |
|
inline |
Apply visitor to all batches.
◆ iterateTransactions()
template<typename Visitor >
| void iroha::MstState::iterateTransactions |
( |
const Visitor & |
visitor | ) |
const |
|
inline |
Apply visitor to all transactions.
◆ operator+=() [1/2]
Add batch to current state
- Parameters
-
- Returns
- States with completed and updated batches
◆ operator+=() [2/2]
Concat internal data of states
- Parameters
-
- Returns
- States with completed and updated batches
◆ operator-()
Operator provide difference between this and rhs operator
- Parameters
-
- Returns
- State that provide difference between left and right states axiom operators: A V B == B V A A V B == B V (A \ B)
The documentation for this class was generated from the following files: