|
CatapultServer
v0.5.0.1 (Elephant)
|
Stack of account importance snapshots. More...

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 |
Stack of account importance snapshots.
|
private |
| AccountImportanceSnapshots::SnapshotStack::const_iterator catapult::state::AccountImportanceSnapshots::begin | ( | ) | const |
Returns a const iterator to the first element of the underlying container.

| Importance catapult::state::AccountImportanceSnapshots::current | ( | ) | const |
Gets the current importance of the account.

| AccountImportanceSnapshots::SnapshotStack::const_iterator catapult::state::AccountImportanceSnapshots::end | ( | ) | const |
Returns a const iterator to the element following the last element of the underlying container.

| Importance catapult::state::AccountImportanceSnapshots::get | ( | model::ImportanceHeight | height | ) | const |
Gets the importance of the account at height.

| model::ImportanceHeight catapult::state::AccountImportanceSnapshots::height | ( | ) | const |
Gets the height at which the current importance was calculated.


| void catapult::state::AccountImportanceSnapshots::pop | ( | ) |
Pops the current importance.

| void catapult::state::AccountImportanceSnapshots::set | ( | Importance | importance, |
| model::ImportanceHeight | height | ||
| ) |
Sets the current account importance to importance at height.

|
private |