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

Cache composed of stateful account information. More...

Inheritance diagram for catapult::cache::BasicAccountStateCache:
Collaboration diagram for catapult::cache::BasicAccountStateCache:

Public Member Functions

 BasicAccountStateCache (const CacheConfiguration &config, const AccountStateCacheTypes::Options &options)
 Creates a cache around config and options. More...
 
void init (model::AddressSet &&highValueAddresses)
 Initializes the cache with highValueAddresses. More...
 
void commit (const CacheDeltaType &delta)
 
- Public Member Functions inherited from catapult::cache::BasicCache< TCacheDescriptor, TBaseSet, TSubViewArgs >
 BasicCache (const CacheConfiguration &config, TSubViewArgs &&... subViewArgs)
 Creates an empty cache with config and arguments (subViewArgs). More...
 
CacheViewType createView () const
 Returns a locked view based on this cache. More...
 
CacheDeltaType createDelta ()
 Returns a locked cache delta based on this cache. More...
 
CacheDeltaType createDetachedDelta () const
 
void commit (const CacheDeltaType &delta)
 Commits all pending changes from delta to the underlying storage. More...
 
- Public Member Functions inherited from catapult::utils::MoveOnly
constexpr MoveOnly ()=default
 Default constructor. More...
 
 ~MoveOnly ()=default
 Default destructor. More...
 
 MoveOnly (const NonCopyable &)=delete
 Disabled copy constructor. More...
 
 MoveOnly (MoveOnly &&)=default
 Default move constructor. More...
 
MoveOnlyoperator= (const MoveOnly &)=delete
 Disabled assignment operator. More...
 
MoveOnlyoperator= (MoveOnly &&)=default
 Default move assignment operator. More...
 

Private Member Functions

 BasicAccountStateCache (const CacheConfiguration &config, const AccountStateCacheTypes::Options &options, std::unique_ptr< model::AddressSet > &&pHighValueAddresses)
 

Private Attributes

std::unique_ptr< model::AddressSetm_pHighValueAddresses
 

Additional Inherited Members

- Public Types inherited from catapult::cache::BasicCache< TCacheDescriptor, TBaseSet, TSubViewArgs >
using CacheValueType = typename TCacheDescriptor::ValueType
 
using CacheViewType = typename TCacheDescriptor::CacheViewType
 
using CacheDeltaType = typename TCacheDescriptor::CacheDeltaType
 
using CacheReadOnlyType = typename CacheViewType::ReadOnlyView
 

Detailed Description

Cache composed of stateful account information.

Constructor & Destructor Documentation

◆ BasicAccountStateCache() [1/2]

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

Creates a cache around config and options.

◆ BasicAccountStateCache() [2/2]

catapult::cache::BasicAccountStateCache::BasicAccountStateCache ( const CacheConfiguration config,
const AccountStateCacheTypes::Options options,
std::unique_ptr< model::AddressSet > &&  pHighValueAddresses 
)
inlineprivate

Member Function Documentation

◆ commit()

void catapult::cache::BasicAccountStateCache::commit ( const CacheDeltaType delta)
inline

Commits all pending changes to the underlying storage.

Note
This hides AccountStateBasicCache::commit.
Here is the call graph for this function:

◆ init()

void catapult::cache::BasicAccountStateCache::init ( model::AddressSet &&  highValueAddresses)
inline

Initializes the cache with highValueAddresses.

Member Data Documentation

◆ m_pHighValueAddresses

std::unique_ptr<model::AddressSet> catapult::cache::BasicAccountStateCache::m_pHighValueAddresses
private

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