Kagome
Polkadot Runtime Engine in C++17
polkadot_trie_factory_impl.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_STORAGE_TRIE_IMPL_POLKADOT_TRIE_FACTORY_IMPL
7 #define KAGOME_CORE_STORAGE_TRIE_IMPL_POLKADOT_TRIE_FACTORY_IMPL
8 
11 
12 namespace kagome::storage::trie {
13 
15  public:
16  std::unique_ptr<PolkadotTrie> createEmpty(
17  PolkadotTrie::NodeRetrieveFunctor f) const override;
18  std::shared_ptr<PolkadotTrie> createFromRoot(
20  PolkadotTrie::NodeRetrieveFunctor f) const override;
21  };
22 
23 } // namespace kagome::storage::trie
24 
25 #endif // KAGOME_CORE_STORAGE_TRIE_IMPL_POLKADOT_TRIE_FACTORY_IMPL
std::shared_ptr< TrieNode > NodePtr
std::unique_ptr< PolkadotTrie > createEmpty(PolkadotTrie::NodeRetrieveFunctor f) const override
std::function< outcome::result< NodePtr >(std::shared_ptr< OpaqueTrieNode > const &)> NodeRetrieveFunctor
std::shared_ptr< PolkadotTrie > createFromRoot(PolkadotTrie::NodePtr root, PolkadotTrie::NodeRetrieveFunctor f) const override