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

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

Collaboration diagram for catapult::model::TransactionStatement:

Public Member Functions

 TransactionStatement (const ReceiptSource &source)
 Creates a statement around source. More...
 
const ReceiptSourcesource () const
 Gets statement source. More...
 
size_t size () const
 Gets the number of attached receipts. More...
 
const ReceiptreceiptAt (size_t index) const
 Gets the receipt at index. More...
 
Hash256 hash () const
 Calculates a unique hash for this statement. More...
 
void addReceipt (const Receipt &receipt)
 Adds receipt to this transaction statement. More...
 

Private Attributes

ReceiptSource m_source
 
std::vector< std::unique_ptr< Receipt > > m_receipts
 

Detailed Description

Collection of receipts scoped to a transaction.

Constructor & Destructor Documentation

◆ TransactionStatement()

catapult::model::TransactionStatement::TransactionStatement ( const ReceiptSource source)
explicit

Creates a statement around source.

Member Function Documentation

◆ addReceipt()

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

Adds receipt to this transaction statement.

Here is the caller graph for this function:

◆ hash()

Hash256 catapult::model::TransactionStatement::hash ( ) const

Calculates a unique hash for this statement.

Here is the call graph for this function:

◆ receiptAt()

const Receipt & catapult::model::TransactionStatement::receiptAt ( size_t  index) const

Gets the receipt at index.

◆ size()

size_t catapult::model::TransactionStatement::size ( ) const

Gets the number of attached receipts.

◆ source()

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

Gets statement source.

Here is the caller graph for this function:

Member Data Documentation

◆ m_receipts

std::vector<std::unique_ptr<Receipt> > catapult::model::TransactionStatement::m_receipts
private

◆ m_source

ReceiptSource catapult::model::TransactionStatement::m_source
private

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