33 #ifndef DART_COMMON_SUBJECT_HPP_
34 #define DART_COMMON_SUBJECT_HPP_
The Observer class should be inherited by any class that wants to respond in a customized way to the ...
Definition: Observer.hpp:52
The Subject class is a base class for any object that wants to report when it gets destroyed.
Definition: Subject.hpp:58
void removeObserver(Observer *_observer) const
Remove an Observer from the list of Observers.
Definition: Subject.cpp:70
virtual ~Subject()
Destructor will notify all Observers that it is destructing.
Definition: Subject.cpp:40
void sendDestructionNotification() const
Send a destruction notification to all Observers.
Definition: Subject.cpp:46
std::set< Observer * > mObservers
List of current Observers.
Definition: Subject.hpp:80
void addObserver(Observer *_observer) const
Add an Observer to the list of Observers.
Definition: Subject.cpp:57
Definition: BulletCollisionDetector.cpp:63