Kagome
Polkadot Runtime Engine in C++17
kagome::runtime::binaryen::ModuleFactoryImpl Class Referencefinal

#include <module_factory_impl.hpp>

Inheritance diagram for kagome::runtime::binaryen::ModuleFactoryImpl:
Collaboration diagram for kagome::runtime::binaryen::ModuleFactoryImpl:

Public Member Functions

 ModuleFactoryImpl (std::shared_ptr< InstanceEnvironmentFactory > env_factory, std::shared_ptr< storage::trie::TrieStorage > storage, std::shared_ptr< crypto::Hasher > hasher)
 
outcome::result< std::unique_ptr< Module > > make (gsl::span< const uint8_t > code) const override
 
- Public Member Functions inherited from kagome::runtime::ModuleFactory
virtual ~ModuleFactory ()=default
 

Private Attributes

std::shared_ptr< InstanceEnvironmentFactoryenv_factory_
 
std::shared_ptr< storage::trie::TrieStoragestorage_
 
std::shared_ptr< crypto::Hasherhasher_
 

Detailed Description

Definition at line 39 of file module_factory_impl.hpp.

Constructor & Destructor Documentation

kagome::runtime::binaryen::ModuleFactoryImpl::ModuleFactoryImpl ( std::shared_ptr< InstanceEnvironmentFactory env_factory,
std::shared_ptr< storage::trie::TrieStorage storage,
std::shared_ptr< crypto::Hasher hasher 
)

Definition at line 18 of file module_factory_impl.cpp.

Member Function Documentation

outcome::result< std::unique_ptr< Module > > kagome::runtime::binaryen::ModuleFactoryImpl::make ( gsl::span< const uint8_t >  code) const
overridevirtual

Implements kagome::runtime::ModuleFactory.

Definition at line 29 of file module_factory_impl.cpp.

Member Data Documentation

std::shared_ptr<InstanceEnvironmentFactory> kagome::runtime::binaryen::ModuleFactoryImpl::env_factory_
private

Definition at line 49 of file module_factory_impl.hpp.

std::shared_ptr<crypto::Hasher> kagome::runtime::binaryen::ModuleFactoryImpl::hasher_
private

Definition at line 51 of file module_factory_impl.hpp.

std::shared_ptr<storage::trie::TrieStorage> kagome::runtime::binaryen::ModuleFactoryImpl::storage_
private

Definition at line 50 of file module_factory_impl.hpp.


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