6 #ifndef KAGOME_STORAGE_TRIE_IMPL_POLKADOT_TRIE_FACTORY 7 #define KAGOME_STORAGE_TRIE_IMPL_POLKADOT_TRIE_FACTORY 39 #endif // KAGOME_STORAGE_TRIE_IMPL_POLKADOT_TRIE_FACTORY virtual std::unique_ptr< PolkadotTrie > createEmpty(PolkadotTrie::NodeRetrieveFunctor f=PolkadotTrie::defaultNodeRetrieveFunctor) const =0
std::shared_ptr< TrieNode > NodePtr
virtual std::shared_ptr< PolkadotTrie > createFromRoot(PolkadotTrie::NodePtr root, PolkadotTrie::NodeRetrieveFunctor f=PolkadotTrie::defaultNodeRetrieveFunctor) const =0
std::function< outcome::result< NodePtr >(std::shared_ptr< OpaqueTrieNode > const &)> NodeRetrieveFunctor
static outcome::result< NodePtr > defaultNodeRetrieveFunctor(const std::shared_ptr< OpaqueTrieNode > &node)
virtual ~PolkadotTrieFactory()=default