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

Synchronized cache composed of block difficulty information. More...

Inheritance diagram for catapult::cache::BlockDifficultyCache:
Collaboration diagram for catapult::cache::BlockDifficultyCache:

Public Member Functions

 BlockDifficultyCache (uint64_t difficultyHistorySize)
 Creates a cache with the specified difficulty history size (difficultyHistorySize). More...
 
- Public Member Functions inherited from catapult::cache::SynchronizedCache< BasicBlockDifficultyCache >
 SynchronizedCache (BasicBlockDifficultyCache &&cache)
 Creates a synchronized decorator around cache. More...
 
LockedCacheView< CacheViewTypecreateView () const
 Returns a locked cache view based on this cache. More...
 
LockedCacheDelta< CacheDeltaTypecreateDelta ()
 
LockableCacheDelta< CacheDeltaTypecreateDetachedDelta () const
 
void commit ()
 Commits all pending changes to the underlying storage. More...
 

Additional Inherited Members

- Public Types inherited from catapult::cache::SynchronizedCache< BasicBlockDifficultyCache >
using CacheValueType = typename BasicBlockDifficultyCache ::CacheValueType
 
using CacheViewType = typename BasicBlockDifficultyCache ::CacheViewType
 
using CacheDeltaType = typename BasicBlockDifficultyCache ::CacheDeltaType
 
using CacheReadOnlyType = typename BasicBlockDifficultyCache ::CacheReadOnlyType
 
- Protected Member Functions inherited from catapult::cache::SynchronizedCache< BasicBlockDifficultyCache >
BasicBlockDifficultyCachecache ()
 Gets a typed reference to the underlying cache. More...
 

Detailed Description

Synchronized cache composed of block difficulty information.

Constructor & Destructor Documentation

◆ BlockDifficultyCache()

catapult::cache::BlockDifficultyCache::BlockDifficultyCache ( uint64_t  difficultyHistorySize)
inlineexplicit

Creates a cache with the specified difficulty history size (difficultyHistorySize).


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