CatapultServer
v0.5.0.1 (Elephant)
|
A mixin for adding patricia tree support to a cache. More...
Public Member Functions | |
PatriciaTreeMixin (const TTree *pTree) | |
Creates a mixin around pTree. More... | |
bool | supportsMerkleRoot () const |
Returns true if merkle root is supported. More... | |
std::pair< Hash256, bool > | tryGetMerkleRoot () const |
Tries to get the merkle root if supported. More... | |
std::pair< Hash256, bool > | tryLookup (const typename TTree::KeyType &key, std::vector< tree::TreeNode > &nodePath) const |
Tries to find the value associated with key in the tree and stores proof of existence or not in nodePath. More... | |
Private Attributes | |
const TTree * | m_pTree |
A mixin for adding patricia tree support to a cache.
|
inlineexplicit |
Creates a mixin around pTree.
|
inline |
Returns true
if merkle root is supported.
|
inline |
Tries to get the merkle root if supported.
|
inline |
Tries to find the value associated with key in the tree and stores proof of existence or not in nodePath.
|
private |