Kagome
Polkadot Runtime Engine in C++17
kagome::storage::trie::PolkadotTrieFactory Class Referenceabstract

#include <polkadot_trie_factory.hpp>

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

Public Member Functions

virtual std::unique_ptr< PolkadotTriecreateEmpty (PolkadotTrie::NodeRetrieveFunctor f=PolkadotTrie::defaultNodeRetrieveFunctor) const =0
 
virtual std::shared_ptr< PolkadotTriecreateFromRoot (PolkadotTrie::NodePtr root, PolkadotTrie::NodeRetrieveFunctor f=PolkadotTrie::defaultNodeRetrieveFunctor) const =0
 
virtual ~PolkadotTrieFactory ()=default
 

Detailed Description

Definition at line 13 of file polkadot_trie_factory.hpp.

Constructor & Destructor Documentation

virtual kagome::storage::trie::PolkadotTrieFactory::~PolkadotTrieFactory ( )
virtualdefault

Member Function Documentation

virtual std::unique_ptr<PolkadotTrie> kagome::storage::trie::PolkadotTrieFactory::createEmpty ( PolkadotTrie::NodeRetrieveFunctor  f = PolkadotTrie::defaultNodeRetrieveFunctor) const
pure virtual

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

Implemented in kagome::storage::trie::PolkadotTrieFactoryImpl.

virtual std::shared_ptr<PolkadotTrie> kagome::storage::trie::PolkadotTrieFactory::createFromRoot ( PolkadotTrie::NodePtr  root,
PolkadotTrie::NodeRetrieveFunctor  f = PolkadotTrie::defaultNodeRetrieveFunctor 
) const
pure virtual

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

Implemented in kagome::storage::trie::PolkadotTrieFactoryImpl.


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