Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Subject Class Reference

Subject component of Observer Pattern. More...

Inheritance diagram for Subject:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual ~Subject ()
virtual void attach (Observer *)
 Attach an Observer to this Subject.

virtual void detach (Observer *)
 Detach an Observer from this Subject.

virtual void notify ()
 Notify all Observers currently attached to this Subject.


Protected Methods

 Subject ()

Private Attributes

list< Observer * > m_observers

Detailed Description

Subject component of Observer Pattern.

A Subject maintains a list of Observer objects to which notifications may be sent. For more information, refer to Design Patterns.


Constructor & Destructor Documentation

virtual Subject::~Subject   [inline, virtual]
 

Subject::Subject   [inline, protected]
 


Member Function Documentation

void Subject::attach Observer   [inline, virtual]
 

Attach an Observer to this Subject.

void Subject::detach Observer   [inline, virtual]
 

Detach an Observer from this Subject.

void Subject::notify   [inline, virtual]
 

Notify all Observers currently attached to this Subject.


Member Data Documentation

list<Observer*> Subject::m_observers [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Jun 12 10:13:15 2003 for RICDemo by doxygen1.2.18