CatapultServer  v0.5.0.1 (Elephant)
catapult::observers::DemuxObserverBuilder::ConditionalObserver< TNotification > Class Template Reference
Inheritance diagram for catapult::observers::DemuxObserverBuilder::ConditionalObserver< TNotification >:
Collaboration diagram for catapult::observers::DemuxObserverBuilder::ConditionalObserver< TNotification >:

Public Member Functions

 ConditionalObserver (NotificationObserverPointerT< TNotification > &&pObserver, const NotificationObserverPredicate &predicate)
 
const std::string & name () const override
 Gets the observer name. More...
 
void notify (const model::Notification &notification, ObserverContext &context) const override
 
- Public Member Functions inherited from catapult::observers::NotificationObserverT< TNotification >
virtual ~NotificationObserverT ()=default
 
virtual void notify (const TNotification &notification, ObserverContext &context) const =0
 Notifies the observer with a notification to process and an observer context. More...
 

Private Attributes

NotificationObserverPointerT< TNotification > m_pObserver
 
NotificationObserverPredicate m_predicate
 

Additional Inherited Members

- Public Types inherited from catapult::observers::NotificationObserverT< TNotification >
using NotificationType = TNotification
 Notification type. More...
 

Constructor & Destructor Documentation

◆ ConditionalObserver()

template<typename TNotification >
catapult::observers::DemuxObserverBuilder::ConditionalObserver< TNotification >::ConditionalObserver ( NotificationObserverPointerT< TNotification > &&  pObserver,
const NotificationObserverPredicate predicate 
)
inline

Member Function Documentation

◆ name()

template<typename TNotification >
const std::string& catapult::observers::DemuxObserverBuilder::ConditionalObserver< TNotification >::name ( ) const
inlineoverridevirtual

◆ notify()

template<typename TNotification >
void catapult::observers::DemuxObserverBuilder::ConditionalObserver< TNotification >::notify ( const model::Notification notification,
ObserverContext context 
) const
inlineoverride

Member Data Documentation

◆ m_pObserver

template<typename TNotification >
NotificationObserverPointerT<TNotification> catapult::observers::DemuxObserverBuilder::ConditionalObserver< TNotification >::m_pObserver
private

◆ m_predicate

template<typename TNotification >
NotificationObserverPredicate catapult::observers::DemuxObserverBuilder::ConditionalObserver< TNotification >::m_predicate
private

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