Kagome
Polkadot Runtime Engine in C++17
kagome::storage::trie::PolkadotTrieFactoryImpl Class Reference

#include <polkadot_trie_factory_impl.hpp>

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

Public Member Functions

std::unique_ptr< PolkadotTriecreateEmpty (PolkadotTrie::NodeRetrieveFunctor f) const override
 
std::shared_ptr< PolkadotTriecreateFromRoot (PolkadotTrie::NodePtr root, PolkadotTrie::NodeRetrieveFunctor f) const override
 
- Public Member Functions inherited from kagome::storage::trie::PolkadotTrieFactory
virtual ~PolkadotTrieFactory ()=default
 

Detailed Description

Definition at line 14 of file polkadot_trie_factory_impl.hpp.

Member Function Documentation

std::unique_ptr< PolkadotTrie > kagome::storage::trie::PolkadotTrieFactoryImpl::createEmpty ( PolkadotTrie::NodeRetrieveFunctor  f) const
overridevirtual

Creates an empty trie

Parameters
ffunctor that a trie uses to obtain a child of a branch. If optional is none, the default one will be used

Implements kagome::storage::trie::PolkadotTrieFactory.

Definition at line 10 of file polkadot_trie_factory_impl.cpp.

std::shared_ptr< PolkadotTrie > kagome::storage::trie::PolkadotTrieFactoryImpl::createFromRoot ( PolkadotTrie::NodePtr  root,
PolkadotTrie::NodeRetrieveFunctor  f 
) const
overridevirtual

Creates a trie with the given root

Parameters
ffunctor that a trie uses to obtain a child of a branch. If optional is none, the default one will be used

Implements kagome::storage::trie::PolkadotTrieFactory.

Definition at line 15 of file polkadot_trie_factory_impl.cpp.


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