CatapultServer  v0.5.0.1 (Elephant)
catapult::model::ResolutionStatement< TUnresolved, TResolved, ResolutionReceiptType > Class Template Reference

Collection of receipts scoped to a unresolved value. More...

Classes

struct  ResolutionEntry
 Resolution entry. More...
 

Public Member Functions

 ResolutionStatement (const TUnresolved &unresolved)
 Creates a statement around unresolved value. More...
 
const TUnresolved & unresolved () const
 Gets unresolved value. More...
 
size_t size () const
 Gets the number of attached resolution entries. More...
 
const ResolutionEntryentryAt (size_t index) const
 Gets the resolution entry at index. More...
 
Hash256 hash () const
 Calculates a unique hash for this statment. More...
 
void addResolution (const TResolved &resolved, const ReceiptSource &source)
 Adds a resolution entry for resolving the unresolved value to resolved value at source. More...
 

Private Attributes

TUnresolved m_unresolved
 
std::vector< ResolutionEntrym_entries
 

Detailed Description

template<typename TUnresolved, typename TResolved, ReceiptType ResolutionReceiptType>
class catapult::model::ResolutionStatement< TUnresolved, TResolved, ResolutionReceiptType >

Collection of receipts scoped to a unresolved value.

Constructor & Destructor Documentation

◆ ResolutionStatement()

template<typename TUnresolved , typename TResolved , ReceiptType ResolutionReceiptType>
catapult::model::ResolutionStatement< TUnresolved, TResolved, ResolutionReceiptType >::ResolutionStatement ( const TUnresolved &  unresolved)
explicit

Creates a statement around unresolved value.

Member Function Documentation

◆ addResolution()

template<typename TUnresolved , typename TResolved , ReceiptType ResolutionReceiptType>
void catapult::model::ResolutionStatement< TUnresolved, TResolved, ResolutionReceiptType >::addResolution ( const TResolved &  resolved,
const ReceiptSource source 
)

Adds a resolution entry for resolving the unresolved value to resolved value at source.

◆ entryAt()

template<typename TUnresolved , typename TResolved , ReceiptType ResolutionReceiptType>
const ResolutionEntry& catapult::model::ResolutionStatement< TUnresolved, TResolved, ResolutionReceiptType >::entryAt ( size_t  index) const

Gets the resolution entry at index.

◆ hash()

template<typename TUnresolved , typename TResolved , ReceiptType ResolutionReceiptType>
Hash256 catapult::model::ResolutionStatement< TUnresolved, TResolved, ResolutionReceiptType >::hash ( ) const

Calculates a unique hash for this statment.

◆ size()

template<typename TUnresolved , typename TResolved , ReceiptType ResolutionReceiptType>
size_t catapult::model::ResolutionStatement< TUnresolved, TResolved, ResolutionReceiptType >::size ( ) const

Gets the number of attached resolution entries.

◆ unresolved()

template<typename TUnresolved , typename TResolved , ReceiptType ResolutionReceiptType>
const TUnresolved& catapult::model::ResolutionStatement< TUnresolved, TResolved, ResolutionReceiptType >::unresolved ( ) const

Gets unresolved value.

Member Data Documentation

◆ m_entries

template<typename TUnresolved , typename TResolved , ReceiptType ResolutionReceiptType>
std::vector<ResolutionEntry> catapult::model::ResolutionStatement< TUnresolved, TResolved, ResolutionReceiptType >::m_entries
private

◆ m_unresolved

template<typename TUnresolved , typename TResolved , ReceiptType ResolutionReceiptType>
TUnresolved catapult::model::ResolutionStatement< TUnresolved, TResolved, ResolutionReceiptType >::m_unresolved
private

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