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

Builder for a register namespace transaction. More...

Inheritance diagram for catapult::builders::RegisterNamespaceBuilder:
Collaboration diagram for catapult::builders::RegisterNamespaceBuilder:

Public Types

using Transaction = model::RegisterNamespaceTransaction
 
using EmbeddedTransaction = model::EmbeddedRegisterNamespaceTransaction
 

Public Member Functions

 RegisterNamespaceBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer)
 
void setDuration (BlockDuration duration)
 Sets the namespace duration to duration and namespaceType to root. More...
 
void setParentId (NamespaceId parentId)
 Sets the id of the parent namespace to parentId and namespaceType to child. More...
 
void setName (const RawBuffer &name)
 Sets the namespace name to name. More...
 
size_t size () const
 
std::unique_ptr< Transactionbuild () const
 Builds a new register namespace transaction. More...
 
std::unique_ptr< EmbeddedTransactionbuildEmbedded () const
 Builds a new embedded register namespace 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 Member Functions

template<typename TTransaction >
size_t sizeImpl () const
 
template<typename TTransaction >
std::unique_ptr< TTransaction > buildImpl () const
 
template<typename TransactionType >
std::unique_ptr< TransactionTypebuildImpl () const
 

Private Attributes

model::NamespaceType m_namespaceType
 
BlockDuration m_duration
 
NamespaceId m_parentId
 
NamespaceId m_namespaceId
 
std::vector< uint8_t > m_name
 

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 a register namespace transaction.

Member Typedef Documentation

◆ EmbeddedTransaction

using catapult::builders::RegisterNamespaceBuilder::EmbeddedTransaction = model::EmbeddedRegisterNamespaceTransaction

◆ Transaction

using catapult::builders::RegisterNamespaceBuilder::Transaction = model::RegisterNamespaceTransaction

Constructor & Destructor Documentation

◆ RegisterNamespaceBuilder()

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

Creates a register namespace builder for building a register namespace transaction from signer for the network specified by networkIdentifier.

Member Function Documentation

◆ build()

std::unique_ptr< RegisterNamespaceBuilder::Transaction > catapult::builders::RegisterNamespaceBuilder::build ( ) const

Builds a new register namespace transaction.

◆ buildEmbedded()

std::unique_ptr< RegisterNamespaceBuilder::EmbeddedTransaction > catapult::builders::RegisterNamespaceBuilder::buildEmbedded ( ) const

Builds a new embedded register namespace transaction.

◆ buildImpl() [1/2]

template<typename TTransaction >
std::unique_ptr<TTransaction> catapult::builders::RegisterNamespaceBuilder::buildImpl ( ) const
private

◆ buildImpl() [2/2]

template<typename TransactionType >
std::unique_ptr<TransactionType> catapult::builders::RegisterNamespaceBuilder::buildImpl ( ) const
private
Here is the call graph for this function:

◆ setDuration()

void catapult::builders::RegisterNamespaceBuilder::setDuration ( BlockDuration  duration)

Sets the namespace duration to duration and namespaceType to root.

◆ setName()

void catapult::builders::RegisterNamespaceBuilder::setName ( const RawBuffer &  name)

Sets the namespace name to name.

◆ setParentId()

void catapult::builders::RegisterNamespaceBuilder::setParentId ( NamespaceId  parentId)

Sets the id of the parent namespace to parentId and namespaceType to child.

◆ size()

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

Returns size of register namespace transaction.

Note
This returns size of a normal transaction not embedded transaction.
Here is the caller graph for this function:

◆ sizeImpl()

template<typename TransactionType >
size_t catapult::builders::RegisterNamespaceBuilder::sizeImpl ( ) const
private
Here is the call graph for this function:

Member Data Documentation

◆ m_duration

BlockDuration catapult::builders::RegisterNamespaceBuilder::m_duration
private

◆ m_name

std::vector<uint8_t> catapult::builders::RegisterNamespaceBuilder::m_name
private

◆ m_namespaceId

NamespaceId catapult::builders::RegisterNamespaceBuilder::m_namespaceId
private

◆ m_namespaceType

model::NamespaceType catapult::builders::RegisterNamespaceBuilder::m_namespaceType
private

◆ m_parentId

NamespaceId catapult::builders::RegisterNamespaceBuilder::m_parentId
private

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