CatapultServer  v0.5.0.1 (Elephant)
catapult::model::BlockStatementBuilder Class Reference

Collection of receipts scoped to a block. More...

Collaboration diagram for catapult::model::BlockStatementBuilder:

Public Member Functions

 BlockStatementBuilder ()
 Creates a builder. More...
 
const ReceiptSourcesource () 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< BlockStatementbuild ()
 Builds a block statement. More...
 

Private Attributes

ReceiptSource m_activeSource
 
std::unique_ptr< BlockStatementm_pStatement
 

Detailed Description

Collection of receipts scoped to a block.

Constructor & Destructor Documentation

◆ BlockStatementBuilder()

catapult::model::BlockStatementBuilder::BlockStatementBuilder ( )

Creates a builder.

Member Function Documentation

◆ addReceipt()

void catapult::model::BlockStatementBuilder::addReceipt ( const Receipt receipt)

Adds receipt to this builder.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addResolution() [1/2]

void catapult::model::BlockStatementBuilder::addResolution ( const UnresolvedAddress unresolved,
const Address resolved 
)

Adds a resolution entry for resolving unresolved value to resolved value.

Here is the caller graph for this function:

◆ addResolution() [2/2]

void catapult::model::BlockStatementBuilder::addResolution ( UnresolvedMosaicId  unresolved,
MosaicId  resolved 
)

Adds a resolution entry for resolving unresolved value to resolved value.

◆ build()

std::unique_ptr< BlockStatement > catapult::model::BlockStatementBuilder::build ( )

Builds a block statement.

Here is the caller graph for this function:

◆ popSource()

void catapult::model::BlockStatementBuilder::popSource ( )

Decrements the current primary source and removes all receipts associated with it.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSource()

void catapult::model::BlockStatementBuilder::setSource ( const ReceiptSource source)

Sets active source.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ source()

const ReceiptSource & catapult::model::BlockStatementBuilder::source ( ) const

Gets active source.

Here is the caller graph for this function:

Member Data Documentation

◆ m_activeSource

ReceiptSource catapult::model::BlockStatementBuilder::m_activeSource
private

◆ m_pStatement

std::unique_ptr<BlockStatement> catapult::model::BlockStatementBuilder::m_pStatement
private

The documentation for this class was generated from the following files: