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

Represents a mosaic definition. More...

Collaboration diagram for catapult::state::MosaicDefinition:

Public Member Functions

 MosaicDefinition (Height height, const Key &owner, uint32_t revision, const model::MosaicProperties &properties)
 Creates a mosaic definition around height, owner, mosaic revision and mosaic properties. More...
 
bool isEternal () const
 Returns true if the mosaic definition has eternal duration. More...
 
bool isActive (Height height) const
 Returns true if the mosaic definition is active at height. More...
 
bool isExpired (Height height) const
 Returns true if the mosaic definition is expired at height. More...
 
Height height () const
 Gets the height. More...
 
const Keyowner () const
 Gets the owner's public key. More...
 
uint32_t revision () const
 Gets the revision. More...
 
const model::MosaicPropertiesproperties () const
 Gets the mosaic properties. More...
 

Private Attributes

Height m_height
 
Key m_owner
 
uint32_t m_revision
 
model::MosaicProperties m_properties
 

Detailed Description

Represents a mosaic definition.

Constructor & Destructor Documentation

◆ MosaicDefinition()

catapult::state::MosaicDefinition::MosaicDefinition ( Height  height,
const Key owner,
uint32_t  revision,
const model::MosaicProperties properties 
)
inlineexplicit

Creates a mosaic definition around height, owner, mosaic revision and mosaic properties.

Member Function Documentation

◆ height()

Height catapult::state::MosaicDefinition::height ( ) const
inline

Gets the height.

Here is the caller graph for this function:

◆ isActive()

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

Returns true if the mosaic definition is active at height.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isEternal()

bool catapult::state::MosaicDefinition::isEternal ( ) const

Returns true if the mosaic definition has eternal duration.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isExpired()

bool catapult::state::MosaicDefinition::isExpired ( Height  height) const

Returns true if the mosaic definition is expired at height.

Here is the call graph for this function:

◆ owner()

const Key& catapult::state::MosaicDefinition::owner ( ) const
inline

Gets the owner's public key.

◆ properties()

const model::MosaicProperties& catapult::state::MosaicDefinition::properties ( ) const
inline

Gets the mosaic properties.

◆ revision()

uint32_t catapult::state::MosaicDefinition::revision ( ) const
inline

Gets the revision.

Member Data Documentation

◆ m_height

Height catapult::state::MosaicDefinition::m_height
private

◆ m_owner

Key catapult::state::MosaicDefinition::m_owner
private

◆ m_properties

model::MosaicProperties catapult::state::MosaicDefinition::m_properties
private

◆ m_revision

uint32_t catapult::state::MosaicDefinition::m_revision
private

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