CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::SummaryAwareSubCachePluginAdapter< TCache, TStorageTraits, TSummaryCacheStorage > Class Template Reference

Specialized sub cache plugin adapter that provides proper handling of summary cache state. More...

Inheritance diagram for catapult::cache::SummaryAwareSubCachePluginAdapter< TCache, TStorageTraits, TSummaryCacheStorage >:
Collaboration diagram for catapult::cache::SummaryAwareSubCachePluginAdapter< TCache, TStorageTraits, TSummaryCacheStorage >:

Public Member Functions

std::unique_ptr< CacheStoragecreateStorage () override
 Returns a cache storage based on this cache. More...
 
- Public Member Functions inherited from catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >
 SubCachePluginAdapter (std::unique_ptr< TCache > &&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< CacheChangesStoragecreateChangesStorage () const override
 Returns a cache changes storage based on this cache. More...
 
TCache & cache ()
 Gets a typed reference to the underlying cache. More...
 
- Public Member Functions inherited from catapult::cache::SubCachePlugin
virtual ~SubCachePlugin ()=default
 

Private Types

using BaseType = SubCachePluginAdapter< TCache, TStorageTraits >
 

Detailed Description

template<typename TCache, typename TStorageTraits, typename TSummaryCacheStorage>
class catapult::cache::SummaryAwareSubCachePluginAdapter< TCache, TStorageTraits, TSummaryCacheStorage >

Specialized sub cache plugin adapter that provides proper handling of summary cache state.

Member Typedef Documentation

◆ BaseType

template<typename TCache , typename TStorageTraits , typename TSummaryCacheStorage >
using catapult::cache::SummaryAwareSubCachePluginAdapter< TCache, TStorageTraits, TSummaryCacheStorage >::BaseType = SubCachePluginAdapter<TCache, TStorageTraits>
private

Member Function Documentation

◆ createStorage()

template<typename TCache , typename TStorageTraits , typename TSummaryCacheStorage >
std::unique_ptr<CacheStorage> catapult::cache::SummaryAwareSubCachePluginAdapter< TCache, TStorageTraits, TSummaryCacheStorage >::createStorage ( )
inlineoverridevirtual

Returns a cache storage based on this cache.

Reimplemented from catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >.

Here is the call graph for this function:

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