CatapultServer  v0.5.0.1 (Elephant)
catapult::builders::AggregateTransactionBuilder Class Reference

Builder for an aggregate transaction. More...

Inheritance diagram for catapult::builders::AggregateTransactionBuilder:
Collaboration diagram for catapult::builders::AggregateTransactionBuilder:

Public Types

using EmbeddedTransactionPointer = std::unique_ptr< model::EmbeddedTransaction >
 

Public Member Functions

 AggregateTransactionBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer)
 Creates an aggregate transaction builder using signer for the network specified by networkIdentifier. More...
 
void addTransaction (EmbeddedTransactionPointer &&pTransaction)
 Adds a transaction. More...
 
size_t size () const
 Returns size of aggregate transaction. More...
 
std::unique_ptr< model::AggregateTransactionbuild () const
 Builds a new aggregate transaction. More...
 
- Public Member Functions inherited from catapult::builders::TransactionBuilder
 TransactionBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer)
 Creates a transaction builder with networkIdentifier and signer. More...
 
const Keysigner () const
 Returns signer. More...
 
void setDeadline (catapult::Timestamp deadline)
 Sets transaction deadline. More...
 
void setMaxFee (catapult::Amount fee)
 Sets maximum transaction fee. More...
 

Private Attributes

std::vector< EmbeddedTransactionPointerm_pTransactions
 

Additional Inherited Members

- Protected Member Functions inherited from catapult::builders::TransactionBuilder
template<typename TTransaction >
std::unique_ptr< TTransaction > createTransaction (size_t size) const
 
- Static Protected Member Functions inherited from catapult::builders::TransactionBuilder
template<typename T , typename Predicate >
static void InsertSorted (std::vector< T > &vector, const T &element, Predicate orderPredicate)
 

Detailed Description

Builder for an aggregate transaction.

Member Typedef Documentation

◆ EmbeddedTransactionPointer

Constructor & Destructor Documentation

◆ AggregateTransactionBuilder()

catapult::builders::AggregateTransactionBuilder::AggregateTransactionBuilder ( model::NetworkIdentifier  networkIdentifier,
const Key signer 
)

Creates an aggregate transaction builder using signer for the network specified by networkIdentifier.

Member Function Documentation

◆ addTransaction()

void catapult::builders::AggregateTransactionBuilder::addTransaction ( AggregateTransactionBuilder::EmbeddedTransactionPointer &&  pTransaction)

Adds a transaction.

◆ build()

std::unique_ptr< TransactionType > catapult::builders::AggregateTransactionBuilder::build ( ) const

Builds a new aggregate transaction.

Here is the call graph for this function:

◆ size()

size_t catapult::builders::AggregateTransactionBuilder::size ( ) const

Returns size of aggregate transaction.

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

Member Data Documentation

◆ m_pTransactions

std::vector<EmbeddedTransactionPointer> catapult::builders::AggregateTransactionBuilder::m_pTransactions
private

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