| 
    CatapultServer
    v0.5.0.1 (Elephant)
    
   | 
 
Represents units of a mosaic. More...

Public Types | |
| using | ValueType = uint64_t | 
| Raw value type.  More... | |
Public Member Functions | |
| MosaicUnit () | |
| Creates a zeroed mosaic unit.  More... | |
| MosaicUnit (Amount amount) | |
| Creates a mosaic unit from amount atomic units.  More... | |
| MosaicUnit (BasicUnitAmount amount) | |
| Creates a mosaic unit from amount basic units.  More... | |
| MosaicUnit (const MosaicUnit &rhs) | |
| Creates a copy of rhs.  More... | |
| MosaicUnit & | operator= (MosaicUnit rhs) | 
| Assigns rhs to this.  More... | |
| MosaicUnit & | operator= (Amount rhs) | 
| Assigns rhs to this.  More... | |
| MosaicUnit & | operator= (BasicUnitAmount rhs) | 
| Assigns rhs to this.  More... | |
| BasicUnitAmount | basicUnit () const | 
| Gets the number of (basic unit) mosaics.  More... | |
| Amount | atomicUnit () const | 
| Gets the number of (atomic unit) mosaics.  More... | |
| bool | isFractional () const | 
Returns true if this unit includes fractional mosaics.  More... | |
| bool | operator== (MosaicUnit rhs) const | 
Returns true if this value is equal to rhs.  More... | |
| bool | operator!= (MosaicUnit rhs) const | 
Returns true if this value is not equal to rhs.  More... | |
Static Private Member Functions | |
| static uint64_t | GetAtomicUnitMultiplier () | 
Private Attributes | |
| utils::ImmutableValue< ValueType > | m_value | 
Friends | |
| std::ostream & | operator<< (std::ostream &out, MosaicUnit unit) | 
| Insertion operator for outputting unit to out.  More... | |
Represents units of a mosaic.
| using catapult::extensions::MosaicUnit< Divisibility >::ValueType = uint64_t | 
Raw value type.
      
  | 
  inline | 
Creates a zeroed mosaic unit.

      
  | 
  inlineexplicit | 
Creates a mosaic unit from amount atomic units.
      
  | 
  inlineexplicit | 
Creates a mosaic unit from amount basic units.
      
  | 
  inline | 
Creates a copy of rhs.
      
  | 
  inline | 
Gets the number of (atomic unit) mosaics.
      
  | 
  inline | 
Gets the number of (basic unit) mosaics.

      
  | 
  inlinestaticprivate | 

      
  | 
  inline | 
Returns true if this unit includes fractional mosaics. 

      
  | 
  inline | 
Returns true if this value is not equal to rhs. 
      
  | 
  inline | 
Assigns rhs to this.

      
  | 
  inline | 
Assigns rhs to this.

      
  | 
  inline | 
Assigns rhs to this.
      
  | 
  inline | 
Returns true if this value is equal to rhs. 
      
  | 
  friend | 
Insertion operator for outputting unit to out.
      
  | 
  private |