CatapultServer  v0.5.0.1 (Elephant)
catapult::observers::DemuxObserverBuilder Class Reference

A demultiplexing observer builder. More...

Collaboration diagram for catapult::observers::DemuxObserverBuilder:

Classes

class  ConditionalObserver
 

Public Member Functions

template<typename TNotification >
DemuxObserverBuilderadd (NotificationObserverPointerT< TNotification > &&pObserver)
 Adds an observer (pObserver) to the builder that is invoked only when matching notifications are processed. More...
 
AggregateNotificationObserverPointerT< model::Notificationbuild ()
 Builds a demultiplexing observer. More...
 
template<>
DemuxObserverBuilderadd (NotificationObserverPointerT< model::Notification > &&pObserver)
 Adds an observer (pObserver) to the builder that is always invoked. More...
 

Private Types

using NotificationObserverPredicate = predicate< const model::Notification & >
 

Private Attributes

AggregateObserverBuilder< model::Notificationm_builder
 

Detailed Description

A demultiplexing observer builder.

Member Typedef Documentation

◆ NotificationObserverPredicate

Member Function Documentation

◆ add() [1/2]

template<>
DemuxObserverBuilder& catapult::observers::DemuxObserverBuilder::add ( NotificationObserverPointerT< model::Notification > &&  pObserver)
inline

Adds an observer (pObserver) to the builder that is always invoked.

◆ add() [2/2]

template<typename TNotification >
DemuxObserverBuilder& catapult::observers::DemuxObserverBuilder::add ( NotificationObserverPointerT< TNotification > &&  pObserver)
inline

Adds an observer (pObserver) to the builder that is invoked only when matching notifications are processed.

Here is the call graph for this function:

◆ build()

AggregateNotificationObserverPointerT<model::Notification> catapult::observers::DemuxObserverBuilder::build ( )
inline

Builds a demultiplexing observer.

Here is the caller graph for this function:

Member Data Documentation

◆ m_builder

AggregateObserverBuilder<model::Notification> catapult::observers::DemuxObserverBuilder::m_builder
private

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