LoveBrains  1.0.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GA::AObservable Class Reference

Define the abstract class that allow to be observable. More...

#include <a_observable.h>

Inheritance diagram for GA::AObservable:
Graphics::Environment2D

Public Member Functions

virtual ~AObservable (void)
 Destructor.
 
void addObserver (AObserver *obs)
 Add a new observer to the list. More...
 
void delObserver (AObserver *obs)
 Delete an observer. More...
 
void addObserver (AObserver *obs)
 
void delObserver (AObserver *obs)
 

Protected Member Functions

void Notify (AObserver::States state)
 Notify to the observers that something has changed. More...
 
void Notify (AObserver::States state)
 

Protected Attributes

std::list< AObserver * > _obs
 

Detailed Description

Define the abstract class that allow to be observable.

Member Function Documentation

void GA::AObservable::addObserver ( AObserver obs)

Add a new observer to the list.

Parameters
obs: Contains the new AObserver.
void GA::AObservable::delObserver ( AObserver obs)

Delete an observer.

Parameters
obs: Contains the observer that will be deleted.
void GA::AObservable::Notify ( AObserver::States  state)
protected

Notify to the observers that something has changed.

Parameters
state: Contains the new state of the object.

Member Data Documentation

std::list< AObserver * > GA::AObservable::_obs
protected

Contains all the observers


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