CatapultServer
v0.5.0.1 (Elephant)
|
Locked view on top of the catapult cache. More...
Public Member Functions | |
CatapultCacheView (CacheHeightView &&cacheHeightView, std::vector< std::unique_ptr< const SubCacheView >> &&subViews) | |
Creates a locked catapult cache view from a cache height view (cacheHeightView) and subViews. More... | |
~CatapultCacheView () | |
Releases the read lock. More... | |
CatapultCacheView (CatapultCacheView &&) | |
CatapultCacheView & | operator= (CatapultCacheView &&) |
template<typename TCache > | |
const TCache::CacheViewType & | sub () const |
Gets a specific sub cache view. More... | |
StateHashInfo | calculateStateHash () const |
Calculates the cache state hash. More... | |
Height | height () const |
Gets the cache height associated with the read lock. More... | |
ReadOnlyCatapultCache | toReadOnly () const |
Creates a read-only view of this view. More... | |
Private Attributes | |
std::unique_ptr< CacheHeightView > | m_pCacheHeight |
std::vector< std::unique_ptr< const SubCacheView > > | m_subViews |
Locked view on top of the catapult cache.
catapult::cache::CatapultCacheView::CatapultCacheView | ( | CacheHeightView && | cacheHeightView, |
std::vector< std::unique_ptr< const SubCacheView >> && | subViews | ||
) |
Creates a locked catapult cache view from a cache height view (cacheHeightView) and subViews.
|
default |
Releases the read lock.
|
default |
StateHashInfo catapult::cache::CatapultCacheView::calculateStateHash | ( | ) | const |
Calculates the cache state hash.
Height catapult::cache::CatapultCacheView::height | ( | ) | const |
Gets the cache height associated with the read lock.
|
default |
|
inline |
Gets a specific sub cache view.
ReadOnlyCatapultCache catapult::cache::CatapultCacheView::toReadOnly | ( | ) | const |
Creates a read-only view of this view.
|
private |
|
private |