CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::PatriciaTreeRdbDataSource Class Reference

Patricia tree rocksdb-based data source. More...

Collaboration diagram for catapult::cache::PatriciaTreeRdbDataSource:

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::TreeNodeget (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

PatriciaTreeContainerm_container
 

Detailed Description

Patricia tree rocksdb-based data source.

Constructor & Destructor Documentation

◆ PatriciaTreeRdbDataSource()

catapult::cache::PatriciaTreeRdbDataSource::PatriciaTreeRdbDataSource ( PatriciaTreeContainer container)
inlineexplicit

Creates data source around container.

Member Function Documentation

◆ get()

std::unique_ptr<const tree::TreeNode> catapult::cache::PatriciaTreeRdbDataSource::get ( const Hash256 hash) const
inline

Gets the tree node associated with hash.

Here is the call graph for this function:

◆ set() [1/3]

void catapult::cache::PatriciaTreeRdbDataSource::set ( const tree::BranchTreeNode node)
inline

Saves a branch tree node.

Here is the call graph for this function:

◆ set() [2/3]

void catapult::cache::PatriciaTreeRdbDataSource::set ( const tree::LeafTreeNode node)
inline

Saves a leaf tree node.

Here is the caller graph for this function:

◆ set() [3/3]

void catapult::cache::PatriciaTreeRdbDataSource::set ( const tree::TreeNode node)
inlineprivate
Here is the call graph for this function:

◆ size()

size_t catapult::cache::PatriciaTreeRdbDataSource::size ( )
inline

Gets the number of saved nodes.

Here is the call graph for this function:

Member Data Documentation

◆ m_container

PatriciaTreeContainer& catapult::cache::PatriciaTreeRdbDataSource::m_container
private

The documentation for this class was generated from the following file: