< GENERATING_DOXYGEN_OUTPUT More...
#include <mi32/observer.h>

Classes | |
| class | ITERATOR |
Public Types | |
| typedef MILIST< _CT * > | OBSERVERLIST |
| typedef OBSERVERLIST::ITERATOR | OBSERVERLIST_ITERATOR |
Public Member Functions | |
| SUBJECT () | |
| virtual | ~SUBJECT () |
| void | NotifyObservers () |
Protected Member Functions | |
| ITERATOR | ObserverBegin () |
| ITERATOR | ObserverEnd () |
< GENERATING_DOXYGEN_OUTPUT
Base class for the SUBJECT of the OBSERVER (the observed). For an example of how to use this, see the end of this include file.
| typedef MILIST<_CT*> SUBJECT< _CT >::OBSERVERLIST |
| typedef OBSERVERLIST::ITERATOR SUBJECT< _CT >::OBSERVERLIST_ITERATOR |
Default constructor. (nothing to do).
Destructor.
Iterates through the list of OBSERVERs and calls their OnSubjectDestroy methods.
| void SUBJECT< _CT >::NotifyObservers | ( | ) | [inline] |
Call the OnNotify method of all the observers.
If other event handlers are needed, they would be implemented as virtual methods in the OBSERVER-derived class, and the SUBJECT- derived class would be given methods to call them.
| ITERATOR SUBJECT< _CT >::ObserverBegin | ( | ) | [inline, protected] |
Return an iterator to the first Observer.
Note: Named ObserverBegin() to avoid possible conflict if derived class wants a Begin() method.
| ITERATOR SUBJECT< _CT >::ObserverEnd | ( | ) | [inline, protected] |
Return an iterator to the end of the Observer list Note: Named ObserverBegin() to avoid possible conflict if derived class wants a Begin() method.
1.6.1