CatapultServer  v0.5.0.1 (Elephant)
catapult::observers::AggregateObserverBuilder< TNotification >::DefaultAggregateNotificationObserver Class Reference
Inheritance diagram for catapult::observers::AggregateObserverBuilder< TNotification >::DefaultAggregateNotificationObserver:
Collaboration diagram for catapult::observers::AggregateObserverBuilder< TNotification >::DefaultAggregateNotificationObserver:

Public Member Functions

 DefaultAggregateNotificationObserver (NotificationObserverPointerVector &&observers)
 
const std::string & name () const override
 Gets the observer name. More...
 
std::vector< std::string > names () const override
 Gets the names of all sub observers. More...
 
void notify (const TNotification &notification, ObserverContext &context) const override
 Notifies the observer with a notification to process and an observer context. More...
 
- Public Member Functions inherited from catapult::observers::NotificationObserverT< TNotification >
virtual ~NotificationObserverT ()=default
 

Private Member Functions

template<typename TIter >
void notifyAll (TIter begin, TIter end, const TNotification &notification, ObserverContext &context) const
 

Private Attributes

NotificationObserverPointerVector m_observers
 
std::string m_name
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ DefaultAggregateNotificationObserver()

template<typename TNotification>
catapult::observers::AggregateObserverBuilder< TNotification >::DefaultAggregateNotificationObserver::DefaultAggregateNotificationObserver ( NotificationObserverPointerVector &&  observers)
inlineexplicit

Member Function Documentation

◆ name()

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

◆ names()

template<typename TNotification>
std::vector<std::string> catapult::observers::AggregateObserverBuilder< TNotification >::DefaultAggregateNotificationObserver::names ( ) const
inlineoverridevirtual

Gets the names of all sub observers.

Implements catapult::observers::AggregateNotificationObserverT< TNotification >.

Here is the call graph for this function:

◆ notify()

template<typename TNotification>
void catapult::observers::AggregateObserverBuilder< TNotification >::DefaultAggregateNotificationObserver::notify ( const TNotification &  notification,
ObserverContext context 
) const
inlineoverridevirtual

Notifies the observer with a notification to process and an observer context.

Implements catapult::observers::NotificationObserverT< TNotification >.

Here is the call graph for this function:

◆ notifyAll()

template<typename TNotification>
template<typename TIter >
void catapult::observers::AggregateObserverBuilder< TNotification >::DefaultAggregateNotificationObserver::notifyAll ( TIter  begin,
TIter  end,
const TNotification &  notification,
ObserverContext context 
) const
inlineprivate
Here is the caller graph for this function:

Member Data Documentation

◆ m_name

template<typename TNotification>
std::string catapult::observers::AggregateObserverBuilder< TNotification >::DefaultAggregateNotificationObserver::m_name
private

◆ m_observers

template<typename TNotification>
NotificationObserverPointerVector catapult::observers::AggregateObserverBuilder< TNotification >::DefaultAggregateNotificationObserver::m_observers
private

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