|
CatapultServer
v0.5.0.1 (Elephant)
|
Collection of receipts scoped to a transaction. More...

Public Member Functions | |
| TransactionStatement (const ReceiptSource &source) | |
| Creates a statement around source. More... | |
| const ReceiptSource & | source () const |
| Gets statement source. More... | |
| size_t | size () const |
| Gets the number of attached receipts. More... | |
| const Receipt & | receiptAt (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 |
Collection of receipts scoped to a transaction.
|
explicit |
Creates a statement around source.
| void catapult::model::TransactionStatement::addReceipt | ( | const Receipt & | receipt | ) |
Adds receipt to this transaction statement.

| Hash256 catapult::model::TransactionStatement::hash | ( | ) | const |
Calculates a unique hash for this statement.

| const Receipt & catapult::model::TransactionStatement::receiptAt | ( | size_t | index | ) | const |
Gets the receipt at index.
| size_t catapult::model::TransactionStatement::size | ( | ) | const |
Gets the number of attached receipts.
| const ReceiptSource & catapult::model::TransactionStatement::source | ( | ) | const |
Gets statement source.

|
private |
|
private |