CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
28 class BasicAccountStateCacheDelta;
29 class BasicAccountStateCacheView;
33 namespace catapult {
namespace cache {
37 :
public ReadOnlyArtifactCache<BasicAccountStateCacheView, BasicAccountStateCacheDelta, const Address&, state::AccountState>
38 ,
public ReadOnlyArtifactCache<BasicAccountStateCacheView, BasicAccountStateCacheDelta, const Key&, state::AccountState> {
40 template<
typename TKey,
typename TValue>
MosaicId harvestingMosaicId() const
Gets the harvesting mosaic id.
Definition: ReadOnlyAccountStateCache.cpp:53
auto find(TKey id) const
Finds the cache value identified by key.
Definition: ReadOnlyArtifactCache.h:85
A read-only overlay on top of a cache that provides support for contains, get and isActive.
Definition: MosaicCacheTypes.h:42
Amount minHarvesterBalance() const
Gets the minimum harvester balance.
Definition: AccountStateCacheView.cpp:65
model::NetworkIdentifier networkIdentifier() const
Gets the network identifier.
Definition: ReadOnlyAccountStateCache.cpp:41
ReadOnlyAccountStateCache(const BasicAccountStateCacheView &cache)
Creates a read-only overlay on top of cache.
Definition: ReadOnlyAccountStateCache.cpp:27
const BasicAccountStateCacheView * m_pCache
Definition: ReadOnlyAccountStateCache.h:75
MosaicId harvestingMosaicId() const
Gets the harvesting mosaic id.
Definition: AccountStateCacheView.cpp:69
Amount minHarvesterBalance() const
Gets the minimum harvester balance.
Definition: AccountStateCacheDelta.cpp:71
Amount minHarvesterBalance() const
Gets the minimum harvester balance.
Definition: ReadOnlyAccountStateCache.cpp:49
model::NetworkIdentifier networkIdentifier() const
Gets the network identifier.
Definition: AccountStateCacheView.cpp:57
size_t size() const
Returns the number of elements in the cache.
Definition: ReadOnlySimpleCache.h:44
const BasicAccountStateCacheDelta * m_pCacheDelta
Definition: ReadOnlyAccountStateCache.h:76
bool contains(const TKey &key) const
Definition: ReadOnlySimpleCache.h:50
model::NetworkIdentifier networkIdentifier() const
Gets the network identifier.
Definition: AccountStateCacheDelta.cpp:63
uint64_t importanceGrouping() const
Gets the network importance grouping.
Definition: ReadOnlyAccountStateCache.cpp:45
MosaicId harvestingMosaicId() const
Gets the harvesting mosaic id.
Definition: AccountStateCacheDelta.cpp:75
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
Basic delta on top of the account state cache.
Definition: AccountStateCacheDelta.h:57
uint64_t importanceGrouping() const
Gets the network importance grouping.
Definition: AccountStateCacheDelta.cpp:67
Definition: AddressExtractionExtension.cpp:28
Basic view on top of the account state cache.
Definition: AccountStateCacheView.h:53
std::unique_ptr< cache::CatapultCacheDelta > m_pCacheDelta
Definition: BlockChainSyncConsumer.cpp:112
A read-only overlay on top of an account cache.
Definition: ReadOnlyAccountStateCache.h:36
uint64_t importanceGrouping() const
Gets the network importance grouping.
Definition: AccountStateCacheView.cpp:61