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

Specialized block difficulty cache sub cache plugin. More...

Inheritance diagram for catapult::cache::BlockDifficultyCacheSubCachePlugin:
Collaboration diagram for catapult::cache::BlockDifficultyCacheSubCachePlugin:

Public Member Functions

 BlockDifficultyCacheSubCachePlugin (uint64_t difficultyHistorySize)
 Creates a plugin around difficultyHistorySize. More...
 
std::unique_ptr< CacheStoragecreateStorage () override
 Returns a cache storage based on this cache. More...
 
- Public Member Functions inherited from catapult::cache::SubCachePluginAdapter< BlockDifficultyCache, BlockDifficultyCacheStorage >
 SubCachePluginAdapter (std::unique_ptr< BlockDifficultyCache > &&pCache)
 Creates an adapter around pCache. More...
 
const std::string & name () const override
 Gets the cache name. More...
 
size_t id () const override
 Gets the cache id. More...
 
std::unique_ptr< const SubCacheViewcreateView () const override
 Returns a locked cache view based on this cache. More...
 
std::unique_ptr< SubCacheViewcreateDelta () override
 
std::unique_ptr< DetachedSubCacheViewcreateDetachedDelta () const override
 
void commit () override
 Commits all pending changes to the underlying storage. More...
 
const void * get () const override
 Returns a const pointer to the underlying cache. More...
 
std::unique_ptr< CacheStoragecreateStorage () override
 Returns a cache storage based on this cache. More...
 
std::unique_ptr< CacheChangesStoragecreateChangesStorage () const override
 Returns a cache changes storage based on this cache. More...
 
BlockDifficultyCachecache ()
 Gets a typed reference to the underlying cache. More...
 
- Public Member Functions inherited from catapult::cache::SubCachePlugin
virtual ~SubCachePlugin ()=default
 

Detailed Description

Specialized block difficulty cache sub cache plugin.

Constructor & Destructor Documentation

◆ BlockDifficultyCacheSubCachePlugin()

catapult::cache::BlockDifficultyCacheSubCachePlugin::BlockDifficultyCacheSubCachePlugin ( uint64_t  difficultyHistorySize)
explicit

Creates a plugin around difficultyHistorySize.

Member Function Documentation

◆ createStorage()

std::unique_ptr< CacheStorage > catapult::cache::BlockDifficultyCacheSubCachePlugin::createStorage ( )
overridevirtual

Returns a cache storage based on this cache.

Implements catapult::cache::SubCachePlugin.

Here is the call graph for this function:

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