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

Basic view on top of the block difficulty cache. More...

Inheritance diagram for catapult::cache::BasicBlockDifficultyCacheView:
Collaboration diagram for catapult::cache::BasicBlockDifficultyCacheView:

Public Types

using ReadOnlyView = BlockDifficultyCacheTypes::CacheReadOnlyType
 

Public Member Functions

 BasicBlockDifficultyCacheView (const BlockDifficultyCacheTypes::BaseSets &difficultyInfoSets, const BlockDifficultyCacheTypes::Options &options)
 Creates a view around difficultyInfoSets and options. More...
 
DifficultyInfoRange difficultyInfos (Height height, size_t count) const
 Gets a range object that spans count block difficulty infos starting at the specified height. More...
 
- Public Member Functions inherited from catapult::utils::MoveOnly
constexpr MoveOnly ()=default
 Default constructor. More...
 
 ~MoveOnly ()=default
 Default destructor. More...
 
 MoveOnly (const NonCopyable &)=delete
 Disabled copy constructor. More...
 
 MoveOnly (MoveOnly &&)=default
 Default move constructor. More...
 
MoveOnlyoperator= (const MoveOnly &)=delete
 Disabled assignment operator. More...
 
MoveOnlyoperator= (MoveOnly &&)=default
 Default move assignment operator. More...
 
- Public Member Functions inherited from catapult::cache::SizeMixin< TSet >
 SizeMixin (const TSet &set)
 Creates a mixin around set. More...
 
size_t size () const
 Gets the number of elements in the cache. More...
 
- Public Member Functions inherited from catapult::cache::ContainsMixin< TSet, TCacheDescriptor >
 ContainsMixin (const TSet &set)
 Creates a mixin around set. More...
 
bool contains (const KeyType &key) const
 Gets a value indicating whether or not the cache contains an element with key. More...
 
- Public Member Functions inherited from catapult::cache::IterationMixin< TSet >
 IterationMixin (const TSet &set)
 Creates a mixin around set. More...
 
auto tryMakeIterableView () const
 

Private Attributes

const BlockDifficultyCacheTypes::PrimaryTypes::BaseSetTypem_difficultyInfos
 

Detailed Description

Basic view on top of the block difficulty cache.

Member Typedef Documentation

◆ ReadOnlyView

Constructor & Destructor Documentation

◆ BasicBlockDifficultyCacheView()

catapult::cache::BasicBlockDifficultyCacheView::BasicBlockDifficultyCacheView ( const BlockDifficultyCacheTypes::BaseSets &  difficultyInfoSets,
const BlockDifficultyCacheTypes::Options options 
)

Creates a view around difficultyInfoSets and options.

Member Function Documentation

◆ difficultyInfos()

DifficultyInfoRange catapult::cache::BasicBlockDifficultyCacheView::difficultyInfos ( Height  height,
size_t  count 
) const

Gets a range object that spans count block difficulty infos starting at the specified height.

Here is the call graph for this function:

Member Data Documentation

◆ m_difficultyInfos

const BlockDifficultyCacheTypes::PrimaryTypes::BaseSetType& catapult::cache::BasicBlockDifficultyCacheView::m_difficultyInfos
private

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