Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

Subject< S > Class Template Reference

Template for subjects in the Observer design pattern. More...

#include <observer.hpp>

List of all members.

Public Member Functions

virtual void clearObservers ()
 Remove all observers; should only be used for debugging purposes.
virtual void addObserver (Observer< S > *pObserver)
virtual void delObserver (Observer< S > *pObserver)
virtual void notify ()
 Notify the observers when the status has changed.


Detailed Description

template<class S>
class Subject< S >

Template for subjects in the Observer design pattern.

Definition at line 35 of file observer.hpp.


Member Function Documentation

template<class S>
virtual void Subject< S >::addObserver Observer< S > *  pObserver  )  [inline, virtual]
 

Add an observer to this subject Note: adding twice the same observer is not harmful

Definition at line 48 of file observer.hpp.

Referenced by CtrlCheckbox::CtrlCheckbox(), CtrlRadialSlider::CtrlRadialSlider(), CtrlSliderCursor::CtrlSliderCursor(), and CtrlText::CtrlText().

template<class S>
virtual void Subject< S >::delObserver Observer< S > *  pObserver  )  [inline, virtual]
 

Remove an observer from this subject Note: removing twice the same observer is not harmful

Definition at line 55 of file observer.hpp.


The documentation for this class was generated from the following file:
Generated on Tue Dec 20 10:15:04 2005 for vlc-0.8.4a by  doxygen 1.4.2