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

A read only view on top of a cache height. More...

Inheritance diagram for catapult::cache::CacheHeightView:
Collaboration diagram for catapult::cache::CacheHeightView:

Public Member Functions

 CacheHeightView (Height height, utils::SpinReaderWriterLock::ReaderLockGuard &&readLock)
 Creates a cache height view around height with lock context readLock. More...
 
Height get () const
 Returns the 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...
 

Private Attributes

Height m_height
 
utils::SpinReaderWriterLock::ReaderLockGuard m_readLock
 

Detailed Description

A read only view on top of a cache height.

Constructor & Destructor Documentation

◆ CacheHeightView()

catapult::cache::CacheHeightView::CacheHeightView ( Height  height,
utils::SpinReaderWriterLock::ReaderLockGuard &&  readLock 
)
inlineexplicit

Creates a cache height view around height with lock context readLock.

Member Function Documentation

◆ get()

Height catapult::cache::CacheHeightView::get ( ) const
inline

Returns the height.

Member Data Documentation

◆ m_height

Height catapult::cache::CacheHeightView::m_height
private

◆ m_readLock

utils::SpinReaderWriterLock::ReaderLockGuard catapult::cache::CacheHeightView::m_readLock
private

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