Kagome
Polkadot Runtime Engine in C++17
|
#include <trie_node.hpp>
Public Member Functions | |
BranchNode ()=default | |
BranchNode (KeyNibbles key_nibbles, std::optional< common::Buffer > value=std::nullopt) | |
~BranchNode () 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 123 of file trie_node.hpp.
|
default |
|
inlineexplicit |
Definition at line 127 of file trie_node.hpp.
|
overridedefault |
uint16_t kagome::storage::trie::BranchNode::childrenBitmap | ( | ) | const |
Definition at line 15 of file trie_node.cpp.
uint8_t kagome::storage::trie::BranchNode::childrenNum | ( | ) | const |
Definition at line 25 of file trie_node.cpp.
|
overridevirtual |
Implements kagome::storage::trie::Node.
Definition at line 10 of file trie_node.cpp.
std::array<std::shared_ptr<OpaqueTrieNode>, kMaxChildren> kagome::storage::trie::BranchNode::children |
Definition at line 141 of file trie_node.hpp.
|
static |
Definition at line 124 of file trie_node.hpp.