Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
notifier.h File Reference
#include <vector>
#include <algorithm>
#include <assert.h>

Go to the source code of this file.

Classes

class  Observer< Event >
 
class  Notifier< Event >
 
class  TypedEvent< T, V >
 
class  TypedEventPtr< T, O >
 
class  TypedActionPtr< A, O >
 
class  TypedEventPair< A, B >
 

Macros

#define DECLARE_OBSERVER(Event)
 
#define DECLARE_NOTIFIER(Event)
 

Macro Definition Documentation

◆ DECLARE_NOTIFIER

#define DECLARE_NOTIFIER ( Event)
Value:
virtual void NotifyObservers(Event& event) \
virtual void AddObserver(Observer<Event>& observer) \
virtual void RemoveObserver(Observer<Event>& observer) \
virtual void RemoveObserver(Observer< Event > &observer)
Remove an observer of this event.
Definition notifier.h:154
virtual void AddObserver(Observer< Event > &observer)
Add an observer of this event.
Definition notifier.h:141
virtual void NotifyObservers(Event &event)
Send event notification to all observers of this event.
Definition notifier.h:132

Definition at line 175 of file notifier.h.

◆ DECLARE_OBSERVER

#define DECLARE_OBSERVER ( Event)
Value:
virtual void NotifyMe(Notifier<Event>& observer) \

Definition at line 110 of file notifier.h.