Public Member Functions | |
void | addObserver (Observer *observer) |
void | removeObserver (Observer *observer) |
void | removeObservers () |
void | notifyObserver () |
virtual | ~Observable () |
Protected Member Functions | |
void | setChanged () |
bool | hasChanged () const |
void | clearChanged () |
Observable () |
|
Destructor. |
|
Default constructor. |
|
Add an Observer to this Observable.
|
|
Remove an Observer from this Observable.
|
|
Remove all Observers from this Observable. |
|
Notify the Observers of a change. The Observers are only called when the isChanged flag is set to true.
|
|
Sets the isChanged flag to true. Next time the notifyObserver method is called, the Observers will be notified of the change. |
|
Returns the isChanged flag. |
|
Set the isChanged flag to false. |