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

Observable Class Reference

Inheritance diagram for Observable:

Inheritance graph
[legend]
List of all members.

Detailed Description

Definition at line 16 of file Observable.sip.

Public Types

typedef std::list< Observer * > ObserverList_t
 The type of STL container to maintain list of Observer objects.

Public Member Functions

virtual ~Observable ()
 The destructor.
virtual void addObserver (Observer *)
 Adds an Observer to the Observer list.
void removeObserver (Observer *)
 Removes an Observer from the Observer list.
virtual void notifyObservers () const
 Notifies Observer objects of a change.

Protected Member Functions

 Observable ()
 The member function of the Observer that is called.


Member Typedef Documentation

typedef std::list< Observer * > Observable::ObserverList_t
 

The type of STL container to maintain list of Observer objects.

Definition at line 27 of file Observable.sip.


Constructor & Destructor Documentation

virtual Observable::~Observable  )  [virtual]
 

The destructor.

Does nothing but keep compiler warning messages away.

Observable::Observable  )  [protected]
 

The member function of the Observer that is called.


Member Function Documentation

virtual void Observable::addObserver Observer  )  [virtual]
 

Adds an Observer to the Observer list.

virtual void Observable::notifyObservers  )  const [virtual]
 

Notifies Observer objects of a change.

If interval counting is disabled, then Observer::Update is sent immediately. If interval counting is enabled, then the current count is incremented. If the current count is equal to the interval count, then the Observer::update message is sent and the current count reset to 0.

void Observable::removeObserver Observer  ) 
 

Removes an Observer from the Observer list.


The documentation for this class was generated from the following file:
Generated on Wed Sep 7 14:51:56 2005 for SiHippo by  doxygen 1.4.3