CCF
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ccf::AbstractNodeContext Struct Reference

#include <node_context.h>

Public Member Functions

virtual ~AbstractNodeContext ()=default
 
template<typename T >
void install_subsystem (const std::shared_ptr< T > &subsystem)
 
template<typename T >
std::shared_ptr< T > get_subsystem () const
 
virtual ccf::NodeId get_node_id () const
 
virtual ccf::crypto::Pem get_self_signed_certificate () const
 
ccf::historical::AbstractStateCacheget_historical_state ()
 
ccf::indexing::IndexingStrategiesget_indexing_strategies ()
 

Protected Member Functions

void install_subsystem (const std::shared_ptr< ccf::AbstractNodeSubSystem > &subsystem, const std::string &name)
 
template<typename T >
std::shared_ptr< T > get_subsystem (const std::string &name) const
 

Protected Attributes

std::map< std::string, std::shared_ptr< ccf::AbstractNodeSubSystem > > subsystems
 

Constructor & Destructor Documentation

◆ ~AbstractNodeContext()

virtual ccf::AbstractNodeContext::~AbstractNodeContext ( )
virtualdefault

Member Function Documentation

◆ get_historical_state()

ccf::historical::AbstractStateCache & ccf::AbstractNodeContext::get_historical_state ( )
inline

◆ get_indexing_strategies()

ccf::indexing::IndexingStrategies & ccf::AbstractNodeContext::get_indexing_strategies ( )
inline

◆ get_node_id()

virtual ccf::NodeId ccf::AbstractNodeContext::get_node_id ( ) const
inlinevirtual

◆ get_self_signed_certificate()

virtual ccf::crypto::Pem ccf::AbstractNodeContext::get_self_signed_certificate ( ) const
inlinevirtual

◆ get_subsystem() [1/2]

template<typename T >
std::shared_ptr< T > ccf::AbstractNodeContext::get_subsystem ( ) const
inline

◆ get_subsystem() [2/2]

template<typename T >
std::shared_ptr< T > ccf::AbstractNodeContext::get_subsystem ( const std::string &  name) const
inlineprotected

◆ install_subsystem() [1/2]

void ccf::AbstractNodeContext::install_subsystem ( const std::shared_ptr< ccf::AbstractNodeSubSystem > &  subsystem,
const std::string &  name 
)
inlineprotected

◆ install_subsystem() [2/2]

template<typename T >
void ccf::AbstractNodeContext::install_subsystem ( const std::shared_ptr< T > &  subsystem)
inline

Member Data Documentation

◆ subsystems

std::map<std::string, std::shared_ptr<ccf::AbstractNodeSubSystem> > ccf::AbstractNodeContext::subsystems
protected

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