
Definition at line 16 of file Observable.sip.
Public Types | |
| typedef std::list< Observer * > | ObserverList_t |
| The type of STL container to maintain list of Observer objects. | |
Public Member Functions | |
| virtual | ~Observable () |
| The destructor. | |
| virtual void | addObserver (Observer *) |
| Adds an Observer to the Observer list. | |
| void | removeObserver (Observer *) |
| Removes an Observer from the Observer list. | |
| virtual void | notifyObservers () const |
| Notifies Observer objects of a change. | |
Protected Member Functions | |
| Observable () | |
| The member function of the Observer that is called. | |
|
|
The type of STL container to maintain list of Observer objects.
Definition at line 27 of file Observable.sip. |
|
|
The destructor. Does nothing but keep compiler warning messages away. |
|
|
The member function of the Observer that is called.
|
|
|
Adds an Observer to the Observer list.
|
|
|
Notifies Observer objects of a change. If interval counting is disabled, then Observer::Update is sent immediately. If interval counting is enabled, then the current count is incremented. If the current count is equal to the interval count, then the Observer::update message is sent and the current count reset to 0. |
|
|
Removes an Observer from the Observer list.
|
1.4.3