CatapultServer
v0.5.0.1 (Elephant)
|
A read-only overlay on top of an account cache. More...
Public Member Functions | |
ReadOnlyAccountStateCache (const BasicAccountStateCacheView &cache) | |
Creates a read-only overlay on top of cache. More... | |
ReadOnlyAccountStateCache (const BasicAccountStateCacheDelta &cache) | |
Creates a read-only overlay on top of cache. More... | |
model::NetworkIdentifier | networkIdentifier () const |
Gets the network identifier. More... | |
uint64_t | importanceGrouping () const |
Gets the network importance grouping. More... | |
Amount | minHarvesterBalance () const |
Gets the minimum harvester balance. More... | |
MosaicId | harvestingMosaicId () const |
Gets the harvesting mosaic id. More... | |
auto | find (TKey id) const |
Finds the cache value identified by key. More... | |
auto | find (TKey id) const |
Finds the cache value identified by key. More... | |
Public Member Functions inherited from catapult::cache::ReadOnlyArtifactCache< BasicAccountStateCacheView, BasicAccountStateCacheDelta, const Address &, state::AccountState > | |
ReadOnlyArtifactCache (const BasicAccountStateCacheView &cache) | |
Creates a read-only overlay on top of cache. More... | |
ReadOnlyArtifactCache (const BasicAccountStateCacheDelta &cache) | |
Creates a read-only overlay on top of cache. More... | |
auto | find (const Address & id) const |
Finds the cache value identified by key. More... | |
bool | isActive (const Address & id, Height height) const |
Gets a value indicating whether or not an artifact with id is active at height. More... | |
Public Member Functions inherited from catapult::cache::ReadOnlySimpleCache< BasicAccountStateCacheView, BasicAccountStateCacheDelta, const Address & > | |
ReadOnlySimpleCache (const BasicAccountStateCacheView &cache) | |
Creates a read-only overlay on top of cache. More... | |
ReadOnlySimpleCache (const BasicAccountStateCacheDelta &cache) | |
Creates a read-only overlay on top of cache. More... | |
size_t | size () const |
Returns the number of elements in the cache. More... | |
bool | contains (const const Address & &key) const |
Public Member Functions inherited from catapult::cache::ReadOnlyArtifactCache< BasicAccountStateCacheView, BasicAccountStateCacheDelta, const Key &, state::AccountState > | |
ReadOnlyArtifactCache (const BasicAccountStateCacheView &cache) | |
Creates a read-only overlay on top of cache. More... | |
ReadOnlyArtifactCache (const BasicAccountStateCacheDelta &cache) | |
Creates a read-only overlay on top of cache. More... | |
auto | find (const Key & id) const |
Finds the cache value identified by key. More... | |
bool | isActive (const Key & id, Height height) const |
Gets a value indicating whether or not an artifact with id is active at height. More... | |
Public Member Functions inherited from catapult::cache::ReadOnlySimpleCache< BasicAccountStateCacheView, BasicAccountStateCacheDelta, const Key & > | |
ReadOnlySimpleCache (const BasicAccountStateCacheView &cache) | |
Creates a read-only overlay on top of cache. More... | |
ReadOnlySimpleCache (const BasicAccountStateCacheDelta &cache) | |
Creates a read-only overlay on top of cache. More... | |
size_t | size () const |
Returns the number of elements in the cache. More... | |
bool | contains (const const Key & &key) const |
Private Types | |
template<typename TKey , typename TValue > | |
using | ReadOnlySubCache = ReadOnlyArtifactCache< BasicAccountStateCacheView, BasicAccountStateCacheDelta, const TKey &, TValue > |
using | AddressBasedCache = ReadOnlySubCache< Address, state::AccountState > |
using | KeyBasedCache = ReadOnlySubCache< Key, state::AccountState > |
Private Attributes | |
const BasicAccountStateCacheView * | m_pCache |
const BasicAccountStateCacheDelta * | m_pCacheDelta |
A read-only overlay on top of an account cache.
|
private |
|
private |
|
private |
|
explicit |
Creates a read-only overlay on top of cache.
|
explicit |
Creates a read-only overlay on top of cache.
|
inline |
Finds the cache value identified by key.
|
inline |
Finds the cache value identified by key.
MosaicId catapult::cache::ReadOnlyAccountStateCache::harvestingMosaicId | ( | ) | const |
Gets the harvesting mosaic id.
uint64_t catapult::cache::ReadOnlyAccountStateCache::importanceGrouping | ( | ) | const |
Gets the network importance grouping.
Amount catapult::cache::ReadOnlyAccountStateCache::minHarvesterBalance | ( | ) | const |
Gets the minimum harvester balance.
model::NetworkIdentifier catapult::cache::ReadOnlyAccountStateCache::networkIdentifier | ( | ) | const |
Gets the network identifier.
|
private |
|
private |