CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::BlockDifficultyCacheStorage Struct Reference

Policy for saving and loading block difficulty cache data. More...

Inheritance diagram for catapult::cache::BlockDifficultyCacheStorage:
Collaboration diagram for catapult::cache::BlockDifficultyCacheStorage:

Static Public Member Functions

static void Save (const ValueType &info, io::OutputStream &output)
 Saves info to output. More...
 
static state::BlockDifficultyInfo Load (io::InputStream &input)
 Loads a single value from input. More...
 
static void Purge (const ValueType &info, DestinationType &cacheDelta)
 Purges value from cacheDelta. More...
 
- Static Public Member Functions inherited from catapult::cache::CacheStorageForBasicInsertRemoveCache< BlockDifficultyCacheDescriptor >
static void LoadInto (const typename BlockDifficultyCacheDescriptor ::ValueType &value, typename BlockDifficultyCacheDescriptor ::CacheDeltaType &cacheDelta)
 Loads value into cacheDelta. More...
 
static void Purge (const typename BlockDifficultyCacheDescriptor ::ValueType &value, typename BlockDifficultyCacheDescriptor ::CacheDeltaType &cacheDelta)
 Purges value from cacheDelta. More...
 

Additional Inherited Members

- Public Types inherited from catapult::cache::CacheStorageFromDescriptor< BlockDifficultyCacheDescriptor >
using SourceType = typename BlockDifficultyCacheDescriptor ::CacheViewType
 Cache view type. More...
 
using DestinationType = typename BlockDifficultyCacheDescriptor ::CacheDeltaType
 Cache delta type. More...
 
using KeyType = typename BlockDifficultyCacheDescriptor ::KeyType
 Cache key type. More...
 
using ValueType = typename BlockDifficultyCacheDescriptor ::ValueType
 Cache value type. More...
 

Detailed Description

Policy for saving and loading block difficulty cache data.

Member Function Documentation

◆ Load()

state::BlockDifficultyInfo catapult::cache::BlockDifficultyCacheStorage::Load ( io::InputStream input)
static

Loads a single value from input.

Here is the call graph for this function:

◆ Purge()

void catapult::cache::BlockDifficultyCacheStorage::Purge ( const ValueType info,
DestinationType cacheDelta 
)
static

Purges value from cacheDelta.

Here is the call graph for this function:

◆ Save()

void catapult::cache::BlockDifficultyCacheStorage::Save ( const ValueType info,
io::OutputStream output 
)
static

Saves info to output.

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

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