CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace cache {
41 std::unique_ptr<const tree::TreeNode>
get(
const Hash256& hash)
const {
46 const auto& pair = *iter;
47 return std::make_unique<const tree::TreeNode>(pair.second.copy());
TreeNode copy() const
Creates a copy of this node.
Definition: TreeNode.cpp:234
void set(const tree::TreeNode &node)
Definition: PatriciaTreeRdbDataSource.h:62
size_t size()
Gets the number of saved nodes.
Definition: PatriciaTreeRdbDataSource.h:36
Patricia tree rocksdb-based data source.
Definition: PatriciaTreeRdbDataSource.h:28
const_iterator cend() const
Returns iterator that represents non-existing element.
Definition: RdbTypedColumnContainer.h:140
void set(const tree::BranchTreeNode &node)
Saves a branch tree node.
Definition: PatriciaTreeRdbDataSource.h:57
const Hash256 & hash() const
Gets the hash representation of this node.
Definition: TreeNode.cpp:202
const_iterator find(const KeyType &key) const
Finds element with key. Returns cend() if key has not been found.
Definition: RdbTypedColumnContainer.h:123
size_t size() const
Returns size of the column.
Definition: RdbColumnContainer.cpp:64
void insert(const StorageType &element)
Inserts element into container.
Definition: RdbTypedColumnContainer.h:112
void set(const tree::LeafTreeNode &node)
Saves a leaf tree node.
Definition: PatriciaTreeRdbDataSource.h:52
Represents a leaf tree node.
Definition: TreeNode.h:34
PatriciaTreeContainer & m_container
Definition: PatriciaTreeRdbDataSource.h:67
PatriciaTreeRdbDataSource(PatriciaTreeContainer &container)
Creates data source around container.
Definition: PatriciaTreeRdbDataSource.h:31
Definition: AddressExtractionExtension.cpp:28
Represents a tree node.
Definition: TreeNode.h:124
std::unique_ptr< const tree::TreeNode > get(const Hash256 &hash) const
Gets the tree node associated with hash.
Definition: PatriciaTreeRdbDataSource.h:41
Represents a branch tree node.
Definition: TreeNode.h:60