CatapultServer  v0.5.0.1 (Elephant)
catapult::state::MosaicEntry Class Reference

A tuple composed of a mosaic definition and its current state. More...

Inheritance diagram for catapult::state::MosaicEntry:
Collaboration diagram for catapult::state::MosaicEntry:

Public Member Functions

 MosaicEntry (MosaicId id, const MosaicDefinition &definition)
 Creates a mosaic entry around mosaic id and mosaic definition. More...
 
MosaicId mosaicId () const
 Gets the mosaic id. More...
 
const MosaicDefinitiondefinition () const
 Gets the mosaic definition. More...
 
bool isActive (Height height) const
 Returns true if entry is active at height. More...
 
- Public Member Functions inherited from catapult::state::MosaicEntrySupplyMixin
Amount supply () const
 Gets the mosaic supply. More...
 
void increaseSupply (Amount delta)
 Increases the supply by delta. More...
 
void decreaseSupply (Amount delta)
 

Private Attributes

MosaicId m_id
 
MosaicDefinition m_definition
 

Detailed Description

A tuple composed of a mosaic definition and its current state.

Constructor & Destructor Documentation

◆ MosaicEntry()

catapult::state::MosaicEntry::MosaicEntry ( MosaicId  id,
const MosaicDefinition definition 
)

Creates a mosaic entry around mosaic id and mosaic definition.

Member Function Documentation

◆ definition()

const MosaicDefinition & catapult::state::MosaicEntry::definition ( ) const

Gets the mosaic definition.

Here is the caller graph for this function:

◆ isActive()

bool catapult::state::MosaicEntry::isActive ( Height  height) const

Returns true if entry is active at height.

Here is the call graph for this function:

◆ mosaicId()

MosaicId catapult::state::MosaicEntry::mosaicId ( ) const

Gets the mosaic id.

Here is the caller graph for this function:

Member Data Documentation

◆ m_definition

MosaicDefinition catapult::state::MosaicEntry::m_definition
private

◆ m_id

MosaicId catapult::state::MosaicEntry::m_id
private

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