CatapultServer
v0.5.0.1 (Elephant)
|
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 > | |
T | property (MosaicPropertyId id) const |
Private Attributes | |
std::array< MosaicProperty, Num_Mosaic_Properties > | m_properties |
Container for mosaic properties.
|
private |
using catapult::model::MosaicProperties::PropertyValuesContainer = std::array<uint64_t, Num_Mosaic_Properties> |
Type of values container.
|
inlineexplicitprivate |
|
inline |
Returns a const iterator to the first property.
|
inline |
Gets mosaic divisibility.
|
inline |
Gets mosaic duration.
|
inline |
Returns a const iterator to the element following the last property.
|
inlinestatic |
Creates mosaic properties from values.
|
inline |
Returns true
if mosaic flags contain testedFlag.
|
inline |
Returns true
if this properties bag is not equal to rhs.
|
inline |
Returns true
if this properties bag is equal to rhs.
|
inlineprivate |
|
inline |
Gets the number of properties.
|
private |