CatapultServer
v0.5.0.1 (Elephant)
|
A read only view on top of a cache height. More...
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... | |
MoveOnly & | operator= (const MoveOnly &)=delete |
Disabled assignment operator. More... | |
MoveOnly & | operator= (MoveOnly &&)=default |
Default move assignment operator. More... | |
Private Attributes | |
Height | m_height |
utils::SpinReaderWriterLock::ReaderLockGuard | m_readLock |
A read only view on top of a cache height.
|
inlineexplicit |
Creates a cache height view around height with lock context readLock.
|
inline |
Returns the height.
|
private |
|
private |