Kagome
Polkadot Runtime Engine in C++17
|
#include <polkadot_trie_factory_impl.hpp>
Public Member Functions | |
std::unique_ptr< PolkadotTrie > | createEmpty (PolkadotTrie::NodeRetrieveFunctor f) const override |
std::shared_ptr< PolkadotTrie > | createFromRoot (PolkadotTrie::NodePtr root, PolkadotTrie::NodeRetrieveFunctor f) const override |
Public Member Functions inherited from kagome::storage::trie::PolkadotTrieFactory | |
virtual | ~PolkadotTrieFactory ()=default |
Definition at line 14 of file polkadot_trie_factory_impl.hpp.
|
overridevirtual |
Creates an empty trie
f | functor 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.
|
overridevirtual |
Creates a trie with the given root
f | functor 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.