Kagome
Polkadot Runtime Engine in C++17
|
#include <trie_node.hpp>
Public Member Functions | |
BranchContainingHashesNode ()=default | |
BranchContainingHashesNode (KeyNibbles key_nibbles, std::optional< common::Buffer > value=std::nullopt) | |
~BranchContainingHashesNode () override=default | |
int | getType () const override |
uint16_t | childrenBitmap () const |
uint8_t | childrenNum () const |
Public Member Functions inherited from kagome::storage::trie::TrieNode | |
TrieNode ()=default | |
TrieNode (KeyNibbles key_nibbles, std::optional< common::Buffer > value) | |
~TrieNode () override=default | |
Type | getTrieType () const noexcept |
bool | isBranch () const noexcept |
Public Member Functions inherited from kagome::storage::trie::Node | |
virtual | ~Node ()=default |
Public Attributes | |
std::array< std::shared_ptr< OpaqueTrieNode >, kMaxChildren > | children |
Public Attributes inherited from kagome::storage::trie::TrieNode | |
KeyNibbles | key_nibbles |
std::optional< common::Buffer > | value |
Static Public Attributes | |
static constexpr uint8_t | kMaxChildren = 16 |
Additional Inherited Members | |
Public Types inherited from kagome::storage::trie::TrieNode | |
enum | Type { Type::Special, Type::Leaf, Type::BranchEmptyValue, Type::BranchWithValue, Type::LeafContainingHashes, Type::BranchContainingHashes, Type::Empty, Type::ReservedForCompactEncoding } |
Definition at line 154 of file trie_node.hpp.
|
default |
|
inlineexplicit |
Definition at line 158 of file trie_node.hpp.
|
overridedefault |
uint16_t kagome::storage::trie::BranchContainingHashesNode::childrenBitmap | ( | ) | const |
Definition at line 39 of file trie_node.cpp.
uint8_t kagome::storage::trie::BranchContainingHashesNode::childrenNum | ( | ) | const |
Definition at line 49 of file trie_node.cpp.
|
overridevirtual |
Implements kagome::storage::trie::Node.
Definition at line 35 of file trie_node.cpp.
std::array<std::shared_ptr<OpaqueTrieNode>, kMaxChildren> kagome::storage::trie::BranchContainingHashesNode::children |
Definition at line 173 of file trie_node.hpp.
|
static |
Definition at line 155 of file trie_node.hpp.