|
CatapultServer
v0.5.0.1 (Elephant)
|
A write only view on top of a cache height. More...


Public Member Functions | |
| CacheHeightModifier (Height &height, utils::SpinReaderWriterLock::ReaderLockGuard &&readLock) | |
| Creates a write only view around height with lock context readLock. More... | |
| void | set (Height height) |
| Sets the cache height to 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 |
| utils::SpinReaderWriterLock::WriterLockGuard | m_writeLock |
A write only view on top of a cache height.
|
inlineexplicit |
Creates a write only view around height with lock context readLock.
|
inline |
Sets the cache height to height.
|
private |
|
private |
|
private |