CatapultServer
v0.5.0.1 (Elephant)
|
Patricia tree rocksdb-based data source. More...
Public Member Functions | |
PatriciaTreeRdbDataSource (PatriciaTreeContainer &container) | |
Creates data source around container. More... | |
size_t | size () |
Gets the number of saved nodes. More... | |
std::unique_ptr< const tree::TreeNode > | get (const Hash256 &hash) const |
Gets the tree node associated with hash. More... | |
void | set (const tree::LeafTreeNode &node) |
Saves a leaf tree node. More... | |
void | set (const tree::BranchTreeNode &node) |
Saves a branch tree node. More... | |
Private Member Functions | |
void | set (const tree::TreeNode &node) |
Private Attributes | |
PatriciaTreeContainer & | m_container |
Patricia tree rocksdb-based data source.
|
inlineexplicit |
Creates data source around container.
|
inline |
Gets the tree node associated with hash.
|
inline |
Saves a branch tree node.
|
inline |
Saves a leaf tree node.
|
inlineprivate |
|
inline |
Gets the number of saved nodes.
|
private |