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:71
virtual ~Subject()
Destructor will notify all Observers that it is destructing.
Definition Subject.cpp:41
void sendDestructionNotification() const
Send a destruction notification to all Observers.
Definition Subject.cpp:47
std::set< Observer * > mObservers
List of current Observers.
Definition Subject.hpp:78
void addObserver(Observer *_observer) const
Add an Observer to the list of Observers.
Definition Subject.cpp:58
Definition BulletCollisionDetector.cpp:60