Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Watcher< T > Class Template Reference

#include <watcher.h>

Collaboration diagram for Watcher< T >:

Collaboration graph
List of all members.

Public Member Functions

virtual void notifyChange (T *, int)=0
 Watcher (T &_watched)
virtual ~Watcher ()

Private Attributes

T & watched

template<class T>
class Watcher< T >


Constructor & Destructor Documentation

template<class T>
Watcher< T >::Watcher T &  _watched  )  [inline]
 

Definition at line 19 of file watcher.h.

References Watcher< T >::watched.

00019                          : watched(_watched)
00020     {
00021         watched.addWatcher(this);
00022     };

template<class T>
virtual Watcher< T >::~Watcher  )  [inline, virtual]
 

Definition at line 24 of file watcher.h.

References Watcher< T >::watched.

00025     {
00026         watched.removeWatcher(this);
00027     }


Member Function Documentation

template<class T>
virtual void Watcher< T >::notifyChange T *  ,
int 
[pure virtual]
 


Member Data Documentation

template<class T>
T& Watcher< T >::watched [private]
 

Definition at line 16 of file watcher.h.

Referenced by Watcher< T >::Watcher(), and Watcher< T >::~Watcher().


The documentation for this class was generated from the following file:
Generated on Sat Jan 14 22:33:43 2006 for Celestia by  doxygen 1.4.1