CatapultServer
v0.5.0.1 (Elephant)
|
Delta on top of a catapult cache. More...
Public Member Functions | |
CatapultCacheDelta (std::vector< std::unique_ptr< SubCacheView >> &&subViews) | |
Creates a locked catapult cache delta from subViews. More... | |
~CatapultCacheDelta () | |
Destroys the delta. More... | |
CatapultCacheDelta (CatapultCacheDelta &&) | |
CatapultCacheDelta & | operator= (CatapultCacheDelta &&) |
template<typename TCache > | |
const TCache::CacheDeltaType & | sub () const |
Gets a specific sub cache delta view. More... | |
template<typename TCache > | |
TCache::CacheDeltaType & | sub () |
Gets a specific sub cache delta view. More... | |
StateHashInfo | calculateStateHash (Height height) const |
Calculates the cache state hash given height. More... | |
void | setSubCacheMerkleRoots (const std::vector< Hash256 > &subCacheMerkleRoots) |
Sets the merkle roots for all sub caches (subCacheMerkleRoots). More... | |
ReadOnlyCatapultCache | toReadOnly () const |
Creates a read-only view of this delta. More... | |
Private Attributes | |
std::vector< std::unique_ptr< SubCacheView > > | m_subViews |
Delta on top of a catapult cache.
|
explicit |
Creates a locked catapult cache delta from subViews.
|
default |
Destroys the delta.
|
default |
StateHashInfo catapult::cache::CatapultCacheDelta::calculateStateHash | ( | Height | height | ) | const |
Calculates the cache state hash given height.
|
default |
void catapult::cache::CatapultCacheDelta::setSubCacheMerkleRoots | ( | const std::vector< Hash256 > & | subCacheMerkleRoots | ) |
Sets the merkle roots for all sub caches (subCacheMerkleRoots).
|
inline |
Gets a specific sub cache delta view.
|
inline |
Gets a specific sub cache delta view.
ReadOnlyCatapultCache catapult::cache::CatapultCacheDelta::toReadOnly | ( | ) | const |
Creates a read-only view of this delta.
|
private |