Kagome
Polkadot Runtime Engine in C++17
|
#include <trie_storage_impl.hpp>
Public Member Functions | |
TrieStorageImpl (TrieStorageImpl const &)=delete | |
void | operator= (const TrieStorageImpl &)=delete |
TrieStorageImpl (TrieStorageImpl &&)=default | |
TrieStorageImpl & | operator= (TrieStorageImpl &&)=default |
~TrieStorageImpl () override=default | |
outcome::result< std::unique_ptr< PersistentTrieBatch > > | getPersistentBatchAt (const RootHash &root) override |
outcome::result< std::unique_ptr< EphemeralTrieBatch > > | getEphemeralBatchAt (const RootHash &root) const override |
Public Member Functions inherited from kagome::storage::trie::TrieStorage | |
virtual | ~TrieStorage ()=default |
Static Public Member Functions | |
static outcome::result< std::unique_ptr< TrieStorageImpl > > | createEmpty (const std::shared_ptr< PolkadotTrieFactory > &trie_factory, std::shared_ptr< Codec > codec, std::shared_ptr< TrieSerializer > serializer, std::optional< std::shared_ptr< changes_trie::ChangesTracker >> changes) |
static outcome::result< std::unique_ptr< TrieStorageImpl > > | createFromStorage (std::shared_ptr< Codec > codec, std::shared_ptr< TrieSerializer > serializer, std::optional< std::shared_ptr< changes_trie::ChangesTracker >> changes) |
Protected Member Functions | |
TrieStorageImpl (std::shared_ptr< Codec > codec, std::shared_ptr< TrieSerializer > serializer, std::optional< std::shared_ptr< changes_trie::ChangesTracker >> changes) | |
Private Attributes | |
std::shared_ptr< Codec > | codec_ |
std::shared_ptr< TrieSerializer > | serializer_ |
std::optional< std::shared_ptr< changes_trie::ChangesTracker > > | changes_ |
log::Logger | logger_ |
Definition at line 20 of file trie_storage_impl.hpp.
|
delete |
|
default |
|
overridedefault |
|
protected |
Definition at line 40 of file trie_storage_impl.cpp.
|
static |
Definition at line 17 of file trie_storage_impl.cpp.
|
static |
Definition at line 32 of file trie_storage_impl.cpp.
|
overridevirtual |
Implements kagome::storage::trie::TrieStorage.
Definition at line 65 of file trie_storage_impl.cpp.
|
overridevirtual |
Initializes a batch at the provided state
Implements kagome::storage::trie::TrieStorage.
Definition at line 55 of file trie_storage_impl.cpp.
|
delete |
|
default |
|
private |
Definition at line 54 of file trie_storage_impl.hpp.
|
private |
Definition at line 52 of file trie_storage_impl.hpp.
|
private |
Definition at line 55 of file trie_storage_impl.hpp.
|
private |
Definition at line 53 of file trie_storage_impl.hpp.