CatapultServer  v0.5.0.1 (Elephant)
catapult::state::NamespaceAlias Class Reference

A namespace alias. More...

Collaboration diagram for catapult::state::NamespaceAlias:

Public Member Functions

 NamespaceAlias ()
 Creates an unset namespace alias. More...
 
 NamespaceAlias (const NamespaceAlias &alias)
 Copy constructor that makes a copy of alias. More...
 
 NamespaceAlias (MosaicId mosaicId)
 Creates a namespace alias around mosaicId. More...
 
 NamespaceAlias (const Address &address)
 Creates a namespace alias around address. More...
 
NamespaceAliasoperator= (const NamespaceAlias &alias)
 Assignment operator that makes a copy of alias. More...
 
AliasType type () const
 Gets the type of alias. More...
 
MosaicId mosaicId () const
 Gets the mosaic alias. More...
 
const Addressaddress () const
 Gets the address alias. More...
 

Private Attributes

AliasType m_type
 
union {
   MosaicId   m_mosaicId
 
   Address   m_address
 
}; 
 

Detailed Description

A namespace alias.

Constructor & Destructor Documentation

◆ NamespaceAlias() [1/4]

catapult::state::NamespaceAlias::NamespaceAlias ( )

Creates an unset namespace alias.

◆ NamespaceAlias() [2/4]

catapult::state::NamespaceAlias::NamespaceAlias ( const NamespaceAlias alias)

Copy constructor that makes a copy of alias.

◆ NamespaceAlias() [3/4]

catapult::state::NamespaceAlias::NamespaceAlias ( MosaicId  mosaicId)
explicit

Creates a namespace alias around mosaicId.

◆ NamespaceAlias() [4/4]

catapult::state::NamespaceAlias::NamespaceAlias ( const Address address)
explicit

Creates a namespace alias around address.

Member Function Documentation

◆ address()

const Address & catapult::state::NamespaceAlias::address ( ) const

Gets the address alias.

◆ mosaicId()

MosaicId catapult::state::NamespaceAlias::mosaicId ( ) const

Gets the mosaic alias.

◆ operator=()

NamespaceAlias & catapult::state::NamespaceAlias::operator= ( const NamespaceAlias alias)

Assignment operator that makes a copy of alias.

◆ type()

AliasType catapult::state::NamespaceAlias::type ( ) const

Gets the type of alias.

Member Data Documentation

◆ @5

union { ... }

◆ m_address

Address catapult::state::NamespaceAlias::m_address

◆ m_mosaicId

MosaicId catapult::state::NamespaceAlias::m_mosaicId

◆ m_type

AliasType catapult::state::NamespaceAlias::m_type
private

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