CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace extensions {
34 template<
size_t Divisibility>
60 for (
auto i = 0u; i < Divisibility; ++i)
109 return !(*
this == rhs);
Represents units of a mosaic.
Definition: MosaicUnit.h:35
bool isFractional() const
Returns true if this unit includes fractional mosaics.
Definition: MosaicUnit.h:97
MosaicUnit()
Creates a zeroed mosaic unit.
Definition: MosaicUnit.h:42
utils::ImmutableValue< ValueType > m_value
Definition: MosaicUnit.h:123
utils::BaseValue< uint64_t, Amount_tag > Amount
Definition: src/catapult/types.h:76
utils::BaseValue< uint64_t, BasicUnitAmount_tag > BasicUnitAmount
A non-fractional amount of a mosaic.
Definition: MosaicUnit.h:31
MosaicUnit & operator=(Amount rhs)
Assigns rhs to this.
Definition: MosaicUnit.h:74
MosaicUnit(const MosaicUnit &rhs)
Creates a copy of rhs.
Definition: MosaicUnit.h:54
MosaicUnit & operator=(MosaicUnit rhs)
Assigns rhs to this.
Definition: MosaicUnit.h:68
BasicUnitAmount basicUnit() const
Gets the number of (basic unit) mosaics.
Definition: MosaicUnit.h:87
MosaicUnit & operator=(BasicUnitAmount rhs)
Assigns rhs to this.
Definition: MosaicUnit.h:80
Immutable wrapper for basic types, to provide some type-safety.
Definition: BaseValue.h:100
uint64_t ValueType
Raw value type.
Definition: MosaicUnit.h:38
MosaicUnit(Amount amount)
Creates a mosaic unit from amount atomic units.
Definition: MosaicUnit.h:46
Amount atomicUnit() const
Gets the number of (atomic unit) mosaics.
Definition: MosaicUnit.h:92
bool operator==(MosaicUnit rhs) const
Returns true if this value is equal to rhs.
Definition: MosaicUnit.h:103
bool operator!=(MosaicUnit rhs) const
Returns true if this value is not equal to rhs.
Definition: MosaicUnit.h:108
Definition: MosaicUnit.h:28
Definition: AddressExtractionExtension.cpp:28
friend std::ostream & operator<<(std::ostream &out, MosaicUnit unit)
Insertion operator for outputting unit to out.
Definition: MosaicUnit.h:113
static uint64_t GetAtomicUnitMultiplier()
Definition: MosaicUnit.h:58
MosaicUnit(BasicUnitAmount amount)
Creates a mosaic unit from amount basic units.
Definition: MosaicUnit.h:50