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

#include <trie_node.hpp>

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

Public Member Functions

 LeafNode ()=default
 
 LeafNode (KeyNibbles key_nibbles, std::optional< common::Buffer > value)
 
 ~LeafNode () override=default
 
int getType () const override
 
- 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
 

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

Detailed Description

Definition at line 144 of file trie_node.hpp.

Constructor & Destructor Documentation

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

Definition at line 146 of file trie_node.hpp.

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

Member Function Documentation

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

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

Definition at line 31 of file trie_node.cpp.


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