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

A read-only overlay on top of an account cache. More...

Inheritance diagram for catapult::cache::ReadOnlyAccountStateCache:
Collaboration diagram for catapult::cache::ReadOnlyAccountStateCache:

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 BasicAccountStateCacheViewm_pCache
 
const BasicAccountStateCacheDeltam_pCacheDelta
 

Detailed Description

A read-only overlay on top of an account cache.

Member Typedef Documentation

◆ AddressBasedCache

◆ KeyBasedCache

◆ ReadOnlySubCache

Constructor & Destructor Documentation

◆ ReadOnlyAccountStateCache() [1/2]

catapult::cache::ReadOnlyAccountStateCache::ReadOnlyAccountStateCache ( const BasicAccountStateCacheView cache)
explicit

Creates a read-only overlay on top of cache.

◆ ReadOnlyAccountStateCache() [2/2]

catapult::cache::ReadOnlyAccountStateCache::ReadOnlyAccountStateCache ( const BasicAccountStateCacheDelta cache)
explicit

Creates a read-only overlay on top of cache.

Member Function Documentation

◆ find() [1/2]

auto catapult::cache::ReadOnlyArtifactCache< TCache, TCacheDelta, TKey, TValue >::find
inline

Finds the cache value identified by key.

◆ find() [2/2]

auto catapult::cache::ReadOnlyArtifactCache< TCache, TCacheDelta, TKey, TValue >::find
inline

Finds the cache value identified by key.

◆ harvestingMosaicId()

MosaicId catapult::cache::ReadOnlyAccountStateCache::harvestingMosaicId ( ) const

Gets the harvesting mosaic id.

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

◆ importanceGrouping()

uint64_t catapult::cache::ReadOnlyAccountStateCache::importanceGrouping ( ) const

Gets the network importance grouping.

Here is the call graph for this function:

◆ minHarvesterBalance()

Amount catapult::cache::ReadOnlyAccountStateCache::minHarvesterBalance ( ) const

Gets the minimum harvester balance.

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

◆ networkIdentifier()

model::NetworkIdentifier catapult::cache::ReadOnlyAccountStateCache::networkIdentifier ( ) const

Gets the network identifier.

Here is the call graph for this function:

Member Data Documentation

◆ m_pCache

const BasicAccountStateCacheView* catapult::cache::ReadOnlyAccountStateCache::m_pCache
private

◆ m_pCacheDelta

const BasicAccountStateCacheDelta* catapult::cache::ReadOnlyAccountStateCache::m_pCacheDelta
private

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