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

Container for mosaic properties. More...

Public Types

using PropertyValuesContainer = std::array< uint64_t, Num_Mosaic_Properties >
 Type of values container. More...
 

Public Member Functions

size_t size () const
 Gets the number of properties. More...
 
auto begin () const
 Returns a const iterator to the first property. More...
 
auto end () const
 Returns a const iterator to the element following the last property. More...
 
bool is (MosaicFlags testedFlag) const
 Returns true if mosaic flags contain testedFlag. More...
 
uint8_t divisibility () const
 Gets mosaic divisibility. More...
 
BlockDuration duration () const
 Gets mosaic duration. More...
 
bool operator== (const MosaicProperties &rhs) const
 Returns true if this properties bag is equal to rhs. More...
 
bool operator!= (const MosaicProperties &rhs) const
 Returns true if this properties bag is not equal to rhs. More...
 

Static Public Member Functions

static MosaicProperties FromValues (const PropertyValuesContainer &values)
 Creates mosaic properties from values. More...
 

Private Types

using PropertiesContainer = std::array< MosaicProperty, Num_Mosaic_Properties >
 

Private Member Functions

 MosaicProperties (const PropertyValuesContainer &values)
 
template<typename T >
property (MosaicPropertyId id) const
 

Private Attributes

std::array< MosaicProperty, Num_Mosaic_Propertiesm_properties
 

Detailed Description

Container for mosaic properties.

Member Typedef Documentation

◆ PropertiesContainer

◆ PropertyValuesContainer

Type of values container.

Constructor & Destructor Documentation

◆ MosaicProperties()

catapult::model::MosaicProperties::MosaicProperties ( const PropertyValuesContainer values)
inlineexplicitprivate
Here is the caller graph for this function:

Member Function Documentation

◆ begin()

auto catapult::model::MosaicProperties::begin ( ) const
inline

Returns a const iterator to the first property.

◆ divisibility()

uint8_t catapult::model::MosaicProperties::divisibility ( ) const
inline

Gets mosaic divisibility.

◆ duration()

BlockDuration catapult::model::MosaicProperties::duration ( ) const
inline

Gets mosaic duration.

Here is the caller graph for this function:

◆ end()

auto catapult::model::MosaicProperties::end ( ) const
inline

Returns a const iterator to the element following the last property.

◆ FromValues()

static MosaicProperties catapult::model::MosaicProperties::FromValues ( const PropertyValuesContainer values)
inlinestatic

Creates mosaic properties from values.

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

◆ is()

bool catapult::model::MosaicProperties::is ( MosaicFlags  testedFlag) const
inline

Returns true if mosaic flags contain testedFlag.

◆ operator!=()

bool catapult::model::MosaicProperties::operator!= ( const MosaicProperties rhs) const
inline

Returns true if this properties bag is not equal to rhs.

◆ operator==()

bool catapult::model::MosaicProperties::operator== ( const MosaicProperties rhs) const
inline

Returns true if this properties bag is equal to rhs.

◆ property()

template<typename T >
T catapult::model::MosaicProperties::property ( MosaicPropertyId  id) const
inlineprivate
Here is the call graph for this function:

◆ size()

size_t catapult::model::MosaicProperties::size ( ) const
inline

Gets the number of properties.

Member Data Documentation

◆ m_properties

std::array<MosaicProperty, Num_Mosaic_Properties> catapult::model::MosaicProperties::m_properties
private

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