Kagome
Polkadot Runtime Engine in C++17
|
#include <polkadot_trie_factory.hpp>
Public Member Functions | |
virtual std::unique_ptr< PolkadotTrie > | createEmpty (PolkadotTrie::NodeRetrieveFunctor f=PolkadotTrie::defaultNodeRetrieveFunctor) const =0 |
virtual std::shared_ptr< PolkadotTrie > | createFromRoot (PolkadotTrie::NodePtr root, PolkadotTrie::NodeRetrieveFunctor f=PolkadotTrie::defaultNodeRetrieveFunctor) const =0 |
virtual | ~PolkadotTrieFactory ()=default |
Definition at line 13 of file polkadot_trie_factory.hpp.
|
virtualdefault |
|
pure virtual |
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 |
Implemented in kagome::storage::trie::PolkadotTrieFactoryImpl.
|
pure virtual |
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 |
Implemented in kagome::storage::trie::PolkadotTrieFactoryImpl.