CatapultServer  v0.5.0.1 (Elephant)
catapult::observers::ObserverContext Struct Reference

Context passed to all the observers. More...

Collaboration diagram for catapult::observers::ObserverContext:

Public Member Functions

 ObserverContext (const ObserverState &state, Height height, NotifyMode mode, const model::ResolverContext &resolvers)
 
ObserverStatementBuilderStatementBuilder ()
 Statement builder. More...
 

Public Attributes

cache::CatapultCacheDeltaCache
 Catapult cache. More...
 
state::CatapultStateState
 Catapult state. More...
 
const catapult::Height Height
 Current height. More...
 
const NotifyMode Mode
 Notification mode. More...
 
const model::ResolverContext Resolvers
 Alias resolvers. More...
 

Private Attributes

ObserverStatementBuilder m_statementBuilder
 

Detailed Description

Context passed to all the observers.

Constructor & Destructor Documentation

◆ ObserverContext()

catapult::observers::ObserverContext::ObserverContext ( const ObserverState state,
catapult::Height  height,
NotifyMode  mode,
const model::ResolverContext resolvers 
)

Creates an observer context around state at height with specified mode and resolvers.

Note
state is const to enable more consise code even though it only contains non-const references.

Member Function Documentation

◆ StatementBuilder()

ObserverStatementBuilder & catapult::observers::ObserverContext::StatementBuilder ( )

Statement builder.

Here is the caller graph for this function:

Member Data Documentation

◆ Cache

cache::CatapultCacheDelta& catapult::observers::ObserverContext::Cache

Catapult cache.

◆ Height

const catapult::Height catapult::observers::ObserverContext::Height

Current height.

◆ m_statementBuilder

ObserverStatementBuilder catapult::observers::ObserverContext::m_statementBuilder
private

◆ Mode

const NotifyMode catapult::observers::ObserverContext::Mode

Notification mode.

◆ Resolvers

const model::ResolverContext catapult::observers::ObserverContext::Resolvers

Alias resolvers.

◆ State

state::CatapultState& catapult::observers::ObserverContext::State

Catapult state.


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