Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
Observer< Event > Class Template Referenceabstract

#include <notifier.h>

Public Types

typedef std::vector< Notifier< Event > * > NotifierColl
 

Public Member Functions

 Observer ()
 
virtual ~Observer ()
 
virtual void HandleNotification (Event &)=0
 Handle event notification.
 
virtual void NotificationEnded (const Notifier< Event > &notifier)
 Notifier has ended notification of this event.
 
virtual void NotifyMe (Notifier< Event > &notifier)
 Request notification of this event.
 
void StopObserving ()
 Stop observing event.
 

Protected Member Functions

 Observer (const Observer< Event > &observer)
 
const Observer< Event > & operator= (const Observer< Event > &)
 

Friends

class Notifier< Event >
 

Detailed Description

template<typename Event>
class Observer< Event >

Definition at line 58 of file notifier.h.

Member Typedef Documentation

◆ NotifierColl

template<typename Event>
typedef std::vector< Notifier<Event>* > Observer< Event >::NotifierColl

Definition at line 61 of file notifier.h.

Constructor & Destructor Documentation

◆ Observer() [1/2]

template<typename Event>
Observer< Event >::Observer ( )
inline

Definition at line 63 of file notifier.h.

◆ ~Observer()

template<typename Event>
virtual Observer< Event >::~Observer ( )
inlinevirtual

Definition at line 67 of file notifier.h.

◆ Observer() [2/2]

template<typename Event>
Observer< Event >::Observer ( const Observer< Event > & observer)
protected

Member Function Documentation

◆ HandleNotification()

template<typename Event>
virtual void Observer< Event >::HandleNotification ( Event & )
pure virtual

Handle event notification.

◆ NotificationEnded()

template<typename Event>
virtual void Observer< Event >::NotificationEnded ( const Notifier< Event > & notifier)
inlinevirtual

Notifier has ended notification of this event.

Definition at line 74 of file notifier.h.

◆ NotifyMe()

template<typename Event>
virtual void Observer< Event >::NotifyMe ( Notifier< Event > & notifier)
inlinevirtual

Request notification of this event.

Definition at line 86 of file notifier.h.

◆ operator=()

template<typename Event>
const Observer< Event > & Observer< Event >::operator= ( const Observer< Event > & )
protected

◆ StopObserving()

template<typename Event>
void Observer< Event >::StopObserving ( )
inline

Stop observing event.

Definition at line 90 of file notifier.h.

Friends And Related Symbol Documentation

◆ Notifier< Event >

template<typename Event>
friend class Notifier< Event >
friend

Definition at line 102 of file notifier.h.


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