CatapultServer
v0.5.0.1 (Elephant)
|
Sub cache view. More...
Public Member Functions | |
virtual | ~SubCacheView ()=default |
virtual const SubCacheViewIdentifier & | id () const =0 |
Gets view identifier. More... | |
virtual const void * | get () const =0 |
Returns a const pointer to the underlying view. More... | |
virtual void * | get ()=0 |
Returns a pointer to the underlying view. More... | |
virtual bool | supportsMerkleRoot () const =0 |
Returns true if cache supports merkle root. More... | |
virtual bool | tryGetMerkleRoot (Hash256 &merkleRoot) const =0 |
Gets the cache merkle root (merkleRoot) if supported. More... | |
virtual bool | trySetMerkleRoot (const Hash256 &merkleRoot)=0 |
Sets the cache merkle root (merkleRoot) if supported. More... | |
virtual void | updateMerkleRoot (Height height)=0 |
Recalculates the merkle root given the specified chain height if supported. More... | |
virtual const void * | asReadOnly () const =0 |
Returns a read-only view of this view. More... | |
Sub cache view.
|
virtualdefault |
|
pure virtual |
Returns a read-only view of this view.
Implemented in catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >::SubCacheViewAdapter< TView >.
|
pure virtual |
Returns a const pointer to the underlying view.
Implemented in catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >::SubCacheViewAdapter< TView >.
|
pure virtual |
Returns a pointer to the underlying view.
Implemented in catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >::SubCacheViewAdapter< TView >.
|
pure virtual |
Gets view identifier.
Implemented in catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >::SubCacheViewAdapter< TView >.
|
pure virtual |
Returns true
if cache supports merkle root.
Implemented in catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >::SubCacheViewAdapter< TView >.
|
pure virtual |
Gets the cache merkle root (merkleRoot) if supported.
Implemented in catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >::SubCacheViewAdapter< TView >.
|
pure virtual |
Sets the cache merkle root (merkleRoot) if supported.
Implemented in catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >::SubCacheViewAdapter< TView >.
|
pure virtual |
Recalculates the merkle root given the specified chain height if supported.
Implemented in catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >::SubCacheViewAdapter< TView >.