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

#include <runtime_properties_cache_impl.hpp>

Inheritance diagram for kagome::runtime::RuntimePropertiesCacheImpl:
Collaboration diagram for kagome::runtime::RuntimePropertiesCacheImpl:

Public Member Functions

 RuntimePropertiesCacheImpl ()=default
 
outcome::result< primitives::VersiongetVersion (const common::Hash256 &hash, std::function< outcome::result< primitives::Version >()> obtainer) override
 
outcome::result< primitives::OpaqueMetadatagetMetadata (const common::Hash256 &hash, std::function< outcome::result< primitives::OpaqueMetadata >()> obtainer) override
 
- Public Member Functions inherited from kagome::runtime::RuntimePropertiesCache
virtual ~RuntimePropertiesCache ()=default
 

Private Attributes

std::map< common::Hash256, primitives::Versioncached_versions_
 
std::map< common::Hash256, primitives::OpaqueMetadatacached_metadata_
 

Detailed Description

Definition at line 13 of file runtime_properties_cache_impl.hpp.

Constructor & Destructor Documentation

kagome::runtime::RuntimePropertiesCacheImpl::RuntimePropertiesCacheImpl ( )
default

Member Function Documentation

outcome::result< primitives::OpaqueMetadata > kagome::runtime::RuntimePropertiesCacheImpl::getMetadata ( const common::Hash256 hash,
std::function< outcome::result< primitives::OpaqueMetadata >()>  obtainer 
)
overridevirtual
outcome::result< primitives::Version > kagome::runtime::RuntimePropertiesCacheImpl::getVersion ( const common::Hash256 hash,
std::function< outcome::result< primitives::Version >()>  obtainer 
)
overridevirtual

Member Data Documentation

std::map<common::Hash256, primitives::OpaqueMetadata> kagome::runtime::RuntimePropertiesCacheImpl::cached_metadata_
private

Definition at line 29 of file runtime_properties_cache_impl.hpp.

std::map<common::Hash256, primitives::Version> kagome::runtime::RuntimePropertiesCacheImpl::cached_versions_
private

Definition at line 28 of file runtime_properties_cache_impl.hpp.


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