CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::AccountStateCache Class Reference

Synchronized cache composed of stateful account information. More...

Inheritance diagram for catapult::cache::AccountStateCache:
Collaboration diagram for catapult::cache::AccountStateCache:

Public Member Functions

 AccountStateCache (const CacheConfiguration &config, const AccountStateCacheTypes::Options &options)
 Creates a cache around config and options. More...
 
model::NetworkIdentifier networkIdentifier () const
 Gets the network identifier. More...
 
uint64_t importanceGrouping () const
 Gets the network importance grouping. More...
 
- Public Member Functions inherited from catapult::cache::SynchronizedCacheWithInit< BasicAccountStateCache >
 SynchronizedCacheWithInit (BasicAccountStateCache &&cache)
 Creates a synchronized decorator around cache. More...
 
void init (TArgs &&... args)
 Initializes the underlying cache with args. More...
 
- Public Member Functions inherited from catapult::cache::SynchronizedCache< BasicAccountStateCache >
 SynchronizedCache (BasicAccountStateCache &&cache)
 Creates a synchronized decorator around cache. More...
 
LockedCacheView< CacheViewTypecreateView () const
 Returns a locked cache view based on this cache. More...
 
LockedCacheDelta< CacheDeltaTypecreateDelta ()
 
LockableCacheDelta< CacheDeltaTypecreateDetachedDelta () const
 
void commit ()
 Commits all pending changes to the underlying storage. More...
 

Private Attributes

model::NetworkIdentifier m_networkIdentifier
 
uint64_t m_importanceGrouping
 

Additional Inherited Members

- Public Types inherited from catapult::cache::SynchronizedCache< BasicAccountStateCache >
using CacheValueType = typename BasicAccountStateCache ::CacheValueType
 
using CacheViewType = typename BasicAccountStateCache ::CacheViewType
 
using CacheDeltaType = typename BasicAccountStateCache ::CacheDeltaType
 
using CacheReadOnlyType = typename BasicAccountStateCache ::CacheReadOnlyType
 
- Protected Member Functions inherited from catapult::cache::SynchronizedCache< BasicAccountStateCache >
BasicAccountStateCachecache ()
 Gets a typed reference to the underlying cache. More...
 

Detailed Description

Synchronized cache composed of stateful account information.

Constructor & Destructor Documentation

◆ AccountStateCache()

catapult::cache::AccountStateCache::AccountStateCache ( const CacheConfiguration config,
const AccountStateCacheTypes::Options options 
)
inline

Creates a cache around config and options.

Member Function Documentation

◆ importanceGrouping()

uint64_t catapult::cache::AccountStateCache::importanceGrouping ( ) const
inline

Gets the network importance grouping.

◆ networkIdentifier()

model::NetworkIdentifier catapult::cache::AccountStateCache::networkIdentifier ( ) const
inline

Gets the network identifier.

Member Data Documentation

◆ m_importanceGrouping

uint64_t catapult::cache::AccountStateCache::m_importanceGrouping
private

◆ m_networkIdentifier

model::NetworkIdentifier catapult::cache::AccountStateCache::m_networkIdentifier
private

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