Define the abstract class that allow to be observable.
More...
#include <a_observable.h>
|
| void | Notify (AObserver::States state) |
| | Notify to the observers that something has changed. More...
|
| |
|
void | Notify (AObserver::States state) |
| |
Define the abstract class that allow to be observable.
| void GA::AObservable::addObserver |
( |
AObserver * |
obs | ) |
|
Add a new observer to the list.
- Parameters
-
| void GA::AObservable::delObserver |
( |
AObserver * |
obs | ) |
|
Delete an observer.
- Parameters
-
| obs | : Contains the observer that will be deleted. |
| void GA::AObservable::Notify |
( |
AObserver::States |
state | ) |
|
|
protected |
Notify to the observers that something has changed.
- Parameters
-
| state | : Contains the new state of the object. |
| std::list< AObserver * > GA::AObservable::_obs |
|
protected |
Contains all the observers
The documentation for this class was generated from the following files:
- /home/robin_f/Programming/Git/CPP/LoveBrains/include/GA/a_observable.h
- /home/robin_f/Programming/Git/CPP/LoveBrains/lib/GANNEngine/src/GA/a_observable.cc