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

CacheStorage implementation for saving and loading summary block difficulty cache data. More...

Inheritance diagram for catapult::cache::BlockDifficultyCacheSummaryCacheStorage:
Collaboration diagram for catapult::cache::BlockDifficultyCacheSummaryCacheStorage:

Public Member Functions

void saveSummary (const CatapultCacheDelta &cacheDelta, io::OutputStream &output) const override
 Saves cache (summary) data from cacheDelta to output. More...
 
- Public Member Functions inherited from catapult::cache::CacheStorageAdapter< BlockDifficultyCache, BlockDifficultyCacheStorage >
 CacheStorageAdapter (BlockDifficultyCache &cache)
 Creates an adapter around cache. More...
 
const std::string & name () const override
 Gets the cache name. More...
 
void saveAll (const CatapultCacheView &cacheView, io::OutputStream &output) const override
 Saves cache data from cacheView to output. More...
 
void saveSummary (const CatapultCacheDelta &, io::OutputStream &) const override
 Saves cache (summary) data from cacheDelta to output. More...
 
void loadAll (io::InputStream &input, size_t batchSize) override
 Loads cache data from input in batches of batchSize. More...
 
- Public Member Functions inherited from catapult::cache::CacheStorage
virtual ~CacheStorage ()=default
 

Detailed Description

CacheStorage implementation for saving and loading summary block difficulty cache data.

Member Function Documentation

◆ saveSummary()

void catapult::cache::BlockDifficultyCacheSummaryCacheStorage::saveSummary ( const CatapultCacheDelta cacheDelta,
io::OutputStream output 
) const
overridevirtual

Saves cache (summary) data from cacheDelta to output.

Implements catapult::cache::CacheStorage.

Here is the call graph for this function:

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