CatapultServer  v0.5.0.1 (Elephant)
catapult::observers::AggregateObserverBuilder< TNotification > Class Template Reference

A strongly typed aggregate notification observer builder. More...

Classes

class  DefaultAggregateNotificationObserver
 

Public Member Functions

AggregateObserverBuilderadd (NotificationObserverPointer &&pObserver)
 Adds pObserver to the builder and allows chaining. More...
 
AggregateNotificationObserverPointerT< TNotification > build ()
 Builds a strongly typed notification observer. More...
 

Private Types

using NotificationObserverPointer = NotificationObserverPointerT< TNotification >
 
using NotificationObserverPointerVector = std::vector< NotificationObserverPointer >
 

Private Attributes

NotificationObserverPointerVector m_observers
 

Detailed Description

template<typename TNotification>
class catapult::observers::AggregateObserverBuilder< TNotification >

A strongly typed aggregate notification observer builder.

Member Typedef Documentation

◆ NotificationObserverPointer

template<typename TNotification>
using catapult::observers::AggregateObserverBuilder< TNotification >::NotificationObserverPointer = NotificationObserverPointerT<TNotification>
private

◆ NotificationObserverPointerVector

template<typename TNotification>
using catapult::observers::AggregateObserverBuilder< TNotification >::NotificationObserverPointerVector = std::vector<NotificationObserverPointer>
private

Member Function Documentation

◆ add()

template<typename TNotification>
AggregateObserverBuilder& catapult::observers::AggregateObserverBuilder< TNotification >::add ( NotificationObserverPointer &&  pObserver)
inline

Adds pObserver to the builder and allows chaining.

◆ build()

template<typename TNotification>
AggregateNotificationObserverPointerT<TNotification> catapult::observers::AggregateObserverBuilder< TNotification >::build ( )
inline

Builds a strongly typed notification observer.

Member Data Documentation

◆ m_observers

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

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