Kagome
Polkadot Runtime Engine in C++17
kagome::runtime::RuntimeEnvironmentFactory::RuntimeEnvironmentTemplate Struct Reference

#include <runtime_environment_factory.hpp>

Collaboration diagram for kagome::runtime::RuntimeEnvironmentFactory::RuntimeEnvironmentTemplate:

Public Member Functions

 RuntimeEnvironmentTemplate (std::weak_ptr< const RuntimeEnvironmentFactory > parent_factory_, const primitives::BlockInfo &blockchain_state, const storage::trie::RootHash &storage_state)
 
virtual ~RuntimeEnvironmentTemplate ()=default
 
virtual RuntimeEnvironmentTemplatepersistent ()
 
virtual outcome::result< std::unique_ptr< RuntimeEnvironment > > make ()
 

Private Attributes

primitives::BlockInfo blockchain_state_
 
storage::trie::RootHash storage_state_
 
std::weak_ptr< const RuntimeEnvironmentFactoryparent_factory_
 
bool persistent_ {false}
 

Detailed Description

Definition at line 98 of file runtime_environment_factory.hpp.

Constructor & Destructor Documentation

kagome::runtime::RuntimeEnvironmentFactory::RuntimeEnvironmentTemplate::RuntimeEnvironmentTemplate ( std::weak_ptr< const RuntimeEnvironmentFactory parent_factory_,
const primitives::BlockInfo blockchain_state,
const storage::trie::RootHash storage_state 
)

Definition at line 48 of file runtime_environment_factory.cpp.

virtual kagome::runtime::RuntimeEnvironmentFactory::RuntimeEnvironmentTemplate::~RuntimeEnvironmentTemplate ( )
virtualdefault

Member Function Documentation

outcome::result< std::unique_ptr< RuntimeEnvironment > > kagome::runtime::RuntimeEnvironmentFactory::RuntimeEnvironmentTemplate::make ( )
virtual

Definition at line 65 of file runtime_environment_factory.cpp.

RuntimeEnvironmentFactory::RuntimeEnvironmentTemplate & kagome::runtime::RuntimeEnvironmentFactory::RuntimeEnvironmentTemplate::persistent ( )
virtual

Definition at line 59 of file runtime_environment_factory.cpp.

Member Data Documentation

primitives::BlockInfo kagome::runtime::RuntimeEnvironmentFactory::RuntimeEnvironmentTemplate::blockchain_state_
private

Definition at line 113 of file runtime_environment_factory.hpp.

std::weak_ptr<const RuntimeEnvironmentFactory> kagome::runtime::RuntimeEnvironmentFactory::RuntimeEnvironmentTemplate::parent_factory_
private

Definition at line 121 of file runtime_environment_factory.hpp.

bool kagome::runtime::RuntimeEnvironmentFactory::RuntimeEnvironmentTemplate::persistent_ {false}
private

Definition at line 122 of file runtime_environment_factory.hpp.

storage::trie::RootHash kagome::runtime::RuntimeEnvironmentFactory::RuntimeEnvironmentTemplate::storage_state_
private

Definition at line 119 of file runtime_environment_factory.hpp.


The documentation for this struct was generated from the following files: