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

#include <trie_node.hpp>

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

Public Types

enum  Type {
  Type::Special, Type::Leaf, Type::BranchEmptyValue, Type::BranchWithValue,
  Type::LeafContainingHashes, Type::BranchContainingHashes, Type::Empty, Type::ReservedForCompactEncoding
}
 

Public Member Functions

 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
 
virtual int getType () const =0
 

Public Attributes

KeyNibbles key_nibbles
 
std::optional< common::Buffervalue
 

Detailed Description

Definition at line 90 of file trie_node.hpp.

Member Enumeration Documentation

Enumerator
Special 
Leaf 
BranchEmptyValue 
BranchWithValue 
LeafContainingHashes 
BranchContainingHashes 
Empty 
ReservedForCompactEncoding 

Definition at line 97 of file trie_node.hpp.

Constructor & Destructor Documentation

kagome::storage::trie::TrieNode::TrieNode ( )
default
kagome::storage::trie::TrieNode::TrieNode ( KeyNibbles  key_nibbles,
std::optional< common::Buffer value 
)
inline

Definition at line 92 of file trie_node.hpp.

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

Member Function Documentation

Type kagome::storage::trie::TrieNode::getTrieType ( ) const
inlinenoexcept

Definition at line 109 of file trie_node.hpp.

bool kagome::storage::trie::TrieNode::isBranch ( ) const
inlinenoexcept

Definition at line 113 of file trie_node.hpp.

Member Data Documentation

KeyNibbles kagome::storage::trie::TrieNode::key_nibbles

Definition at line 119 of file trie_node.hpp.

std::optional<common::Buffer> kagome::storage::trie::TrieNode::value

Definition at line 120 of file trie_node.hpp.


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