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

Basic view on top of the hash cache. More...

Inheritance diagram for catapult::cache::BasicHashCacheView:
Collaboration diagram for catapult::cache::BasicHashCacheView:

Public Types

using ReadOnlyView = HashCacheTypes::CacheReadOnlyType
 

Public Member Functions

 BasicHashCacheView (const HashCacheTypes::BaseSets &hashSets, const HashCacheTypes::Options &options)
 Creates a view around hashSets and options. More...
 
utils::TimeSpan retentionTime () const
 Gets the retention time for the cache. 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

utils::TimeSpan m_retentionTime
 

Detailed Description

Basic view on top of the hash cache.

Member Typedef Documentation

◆ ReadOnlyView

Constructor & Destructor Documentation

◆ BasicHashCacheView()

catapult::cache::BasicHashCacheView::BasicHashCacheView ( const HashCacheTypes::BaseSets &  hashSets,
const HashCacheTypes::Options options 
)
inlineexplicit

Creates a view around hashSets and options.

Member Function Documentation

◆ retentionTime()

utils::TimeSpan catapult::cache::BasicHashCacheView::retentionTime ( ) const
inline

Gets the retention time for the cache.

Member Data Documentation

◆ m_retentionTime

utils::TimeSpan catapult::cache::BasicHashCacheView::m_retentionTime
private

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