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

Stack of account importance snapshots. More...

Collaboration diagram for catapult::state::AccountImportanceSnapshots:

Classes

struct  ImportanceSnapshot
 Temporal importance information. More...
 

Public Member Functions

Importance current () const
 Gets the current importance of the account. More...
 
model::ImportanceHeight height () const
 Gets the height at which the current importance was calculated. More...
 
Importance get (model::ImportanceHeight height) const
 Gets the importance of the account at height. More...
 
void set (Importance importance, model::ImportanceHeight height)
 Sets the current account importance to importance at height. More...
 
void pop ()
 Pops the current importance. More...
 
SnapshotStack::const_iterator begin () const
 Returns a const iterator to the first element of the underlying container. More...
 
SnapshotStack::const_iterator end () const
 Returns a const iterator to the element following the last element of the underlying container. More...
 

Private Types

using SnapshotStack = CompactArrayStack< ImportanceSnapshot, Importance_History_Size >
 

Private Attributes

SnapshotStack m_snapshots
 

Detailed Description

Stack of account importance snapshots.

Member Typedef Documentation

◆ SnapshotStack

Member Function Documentation

◆ begin()

AccountImportanceSnapshots::SnapshotStack::const_iterator catapult::state::AccountImportanceSnapshots::begin ( ) const

Returns a const iterator to the first element of the underlying container.

Here is the call graph for this function:

◆ current()

Importance catapult::state::AccountImportanceSnapshots::current ( ) const

Gets the current importance of the account.

Here is the call graph for this function:

◆ end()

AccountImportanceSnapshots::SnapshotStack::const_iterator catapult::state::AccountImportanceSnapshots::end ( ) const

Returns a const iterator to the element following the last element of the underlying container.

Here is the call graph for this function:

◆ get()

Importance catapult::state::AccountImportanceSnapshots::get ( model::ImportanceHeight  height) const

Gets the importance of the account at height.

Here is the call graph for this function:

◆ height()

model::ImportanceHeight catapult::state::AccountImportanceSnapshots::height ( ) const

Gets the height at which the current importance was calculated.

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

◆ pop()

void catapult::state::AccountImportanceSnapshots::pop ( )

Pops the current importance.

Here is the call graph for this function:

◆ set()

void catapult::state::AccountImportanceSnapshots::set ( Importance  importance,
model::ImportanceHeight  height 
)

Sets the current account importance to importance at height.

Here is the call graph for this function:

Member Data Documentation

◆ m_snapshots

SnapshotStack catapult::state::AccountImportanceSnapshots::m_snapshots
private

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