Subject< S, ARG > Class Template Reference

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

Inheritance diagram for Subject< S, ARG >:

Inheritance graph
[legend]

Public Member Functions

 ~Subject ()
void addObserver (Observer< S, ARG > *pObserver)
 Add an observer to this subject.
void delObserver (Observer< S, ARG > *pObserver)
 Remove an observer from this subject.
void notify (ARG *arg)
 Notify the observers when the status has changed.
void notify ()
 Notify without any argument.

Protected Member Functions

 Subject ()

Detailed Description

template<class S, class ARG = void>
class Subject< S, ARG >

Template for subjects in the Observer design pattern.

Constructor & Destructor Documentation

template<class S, class ARG = void>
Subject< S, ARG >::~Subject (  )  [inline]

template<class S, class ARG = void>
Subject< S, ARG >::Subject (  )  [inline, protected]


Member Function Documentation

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

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

template<class S, class ARG = void>
void Subject< S, ARG >::notify ( ARG *  arg  )  [inline]

Notify the observers when the status has changed.

template<class S, class ARG = void>
void Subject< S, ARG >::notify (  )  [inline]

Notify without any argument.

Referenced by Subject< VarTree, tree_update >::notify().


The documentation for this class was generated from the following file:

Generated on Tue May 25 08:06:24 2010 for VLC by  doxygen 1.5.6