Kagome
Polkadot Runtime Engine in C++17
kagome::storage::trie::BranchContainingHashesNode Struct Reference

#include <trie_node.hpp>

Inheritance diagram for kagome::storage::trie::BranchContainingHashesNode:
Collaboration diagram for kagome::storage::trie::BranchContainingHashesNode:

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 >, kMaxChildrenchildren
 
- Public Attributes inherited from kagome::storage::trie::TrieNode
KeyNibbles key_nibbles
 
std::optional< common::Buffervalue
 

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
}
 

Detailed Description

Definition at line 154 of file trie_node.hpp.

Constructor & Destructor Documentation

kagome::storage::trie::BranchContainingHashesNode::BranchContainingHashesNode ( )
default
kagome::storage::trie::BranchContainingHashesNode::BranchContainingHashesNode ( KeyNibbles  key_nibbles,
std::optional< common::Buffer value = std::nullopt 
)
inlineexplicit

Definition at line 158 of file trie_node.hpp.

kagome::storage::trie::BranchContainingHashesNode::~BranchContainingHashesNode ( )
overridedefault

Member Function Documentation

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.

int kagome::storage::trie::BranchContainingHashesNode::getType ( ) const
overridevirtual

Implements kagome::storage::trie::Node.

Definition at line 35 of file trie_node.cpp.

Member Data Documentation

std::array<std::shared_ptr<OpaqueTrieNode>, kMaxChildren> kagome::storage::trie::BranchContainingHashesNode::children

Definition at line 173 of file trie_node.hpp.

constexpr uint8_t kagome::storage::trie::BranchContainingHashesNode::kMaxChildren = 16
static

Definition at line 155 of file trie_node.hpp.


The documentation for this struct was generated from the following files: