CatapultServer
v0.5.0.1 (Elephant)
|
Collection of receipts scoped to a block. More...
Public Member Functions | |
BlockStatementBuilder () | |
Creates a builder. More... | |
const ReceiptSource & | source () const |
Gets active source. More... | |
void | setSource (const ReceiptSource &source) |
Sets active source. More... | |
void | popSource () |
Decrements the current primary source and removes all receipts associated with it. More... | |
void | addReceipt (const Receipt &receipt) |
Adds receipt to this builder. More... | |
void | addResolution (const UnresolvedAddress &unresolved, const Address &resolved) |
Adds a resolution entry for resolving unresolved value to resolved value. More... | |
void | addResolution (UnresolvedMosaicId unresolved, MosaicId resolved) |
Adds a resolution entry for resolving unresolved value to resolved value. More... | |
std::unique_ptr< BlockStatement > | build () |
Builds a block statement. More... | |
Private Attributes | |
ReceiptSource | m_activeSource |
std::unique_ptr< BlockStatement > | m_pStatement |
Collection of receipts scoped to a block.
catapult::model::BlockStatementBuilder::BlockStatementBuilder | ( | ) |
Creates a builder.
void catapult::model::BlockStatementBuilder::addReceipt | ( | const Receipt & | receipt | ) |
Adds receipt to this builder.
void catapult::model::BlockStatementBuilder::addResolution | ( | const UnresolvedAddress & | unresolved, |
const Address & | resolved | ||
) |
Adds a resolution entry for resolving unresolved value to resolved value.
void catapult::model::BlockStatementBuilder::addResolution | ( | UnresolvedMosaicId | unresolved, |
MosaicId | resolved | ||
) |
Adds a resolution entry for resolving unresolved value to resolved value.
std::unique_ptr< BlockStatement > catapult::model::BlockStatementBuilder::build | ( | ) |
Builds a block statement.
void catapult::model::BlockStatementBuilder::popSource | ( | ) |
Decrements the current primary source and removes all receipts associated with it.
void catapult::model::BlockStatementBuilder::setSource | ( | const ReceiptSource & | source | ) |
Sets active source.
const ReceiptSource & catapult::model::BlockStatementBuilder::source | ( | ) | const |
Gets active source.
|
private |
|
private |