CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 namespace catapult {
namespace model {
57 for (
auto value : values) {
58 m_properties[i] = { static_cast<MosaicPropertyId>(i), value };
120 return !(*
this == rhs);
MosaicPropertyId
Available mosaic property ids.
Definition: MosaicProperty.h:28
bool operator!=(const MosaicProperties &rhs) const
Returns true if this properties bag is not equal to rhs.
Definition: MosaicProperties.h:119
std::array< MosaicProperty, Num_Mosaic_Properties > m_properties
Definition: MosaicProperties.h:124
constexpr std::underlying_type_t< TEnum > to_underlying_type(TEnum value)
Converts a strongly typed enumeration value to its underlying integral value.
Definition: Casting.h:37
auto end() const
Returns a const iterator to the element following the last property.
Definition: MosaicProperties.h:81
BlockDuration duration() const
Gets mosaic duration.
Definition: MosaicProperties.h:103
MosaicProperties(const PropertyValuesContainer &values)
Definition: MosaicProperties.h:55
constexpr ValueType unwrap() const
Unwraps this value and returns the underlying raw value.
Definition: BaseValue.h:53
constexpr BlockDuration Eternal_Artifact_Duration(0)
Duration of eternal artifact.
uint32_t Value
Definition: BlockScorer.cpp:32
bool is(MosaicFlags testedFlag) const
Returns true if mosaic flags contain testedFlag.
Definition: MosaicProperties.h:93
MosaicFlags
Mosaic property flags.
Definition: MosaicProperty.h:50
Mosaic property composed of an id and a value.
Definition: MosaicProperty.h:69
#define CATAPULT_SET_REQUIRED_PROPERTY(KEY, VALUE)
constexpr size_t Num_Mosaic_Properties
Number of available properties.
Definition: MosaicProperty.h:81
MosaicProperties ExtractAllProperties(const MosaicPropertiesHeader &header, const MosaicProperty *pProperties)
Extracts all properties from header and pProperties.
Definition: MosaicProperties.cpp:32
static MosaicProperties FromValues(const PropertyValuesContainer &values)
Creates mosaic properties from values.
Definition: MosaicProperties.h:65
std::array< MosaicProperty, Num_Mosaic_Properties > PropertiesContainer
Definition: MosaicProperties.h:48
size_t size() const
Gets the number of properties.
Definition: MosaicProperties.h:71
Definition: AddressExtractionExtension.cpp:28
bool operator==(const MosaicProperties &rhs) const
Returns true if this properties bag is equal to rhs.
Definition: MosaicProperties.h:109
uint8_t divisibility() const
Gets mosaic divisibility.
Definition: MosaicProperties.h:98
T property(MosaicPropertyId id) const
Definition: MosaicProperties.h:87
Container for mosaic properties.
Definition: MosaicProperties.h:46
std::array< uint64_t, Num_Mosaic_Properties > PropertyValuesContainer
Type of values container.
Definition: MosaicProperties.h:52
auto begin() const
Returns a const iterator to the first property.
Definition: MosaicProperties.h:76