Rosetta 3.3
Public Member Functions | Protected Member Functions
ObjexxFCL::ObserverSingle Class Reference

ObserverSingle: Combined Subject + Single Observer Abstract Base Class. More...

#include <ObserverSingle.hh>

Inheritance diagram for ObjexxFCL::ObserverSingle:
Inheritance graph
[legend]
Collaboration diagram for ObjexxFCL::ObserverSingle:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~ObserverSingle ()
 Destructor.
void insert_observer (Observer &observer) const
 Insert an Observer.
void remove_observer (Observer &observer) const
 Remove an Observer.
bool has_observer () const
 Has At Least One Observer?
void notify_destructed () const
 Notify Observers That This Subject is Being Destructed.
Observerobserver_p () const
 Observer.

Protected Member Functions

 ObserverSingle ()
 Default Constructor.
 ObserverSingle (ObserverSingle const &)
 Copy Constructor.
ObserverSingleoperator= (ObserverSingle const &)
 Copy Assignment.

Detailed Description

ObserverSingle: Combined Subject + Single Observer Abstract Base Class.


Constructor & Destructor Documentation

ObjexxFCL::ObserverSingle::ObserverSingle ( ) [inline, protected]

Default Constructor.

ObjexxFCL::ObserverSingle::ObserverSingle ( ObserverSingle const &  ) [inline, protected]

Copy Constructor.

virtual ObjexxFCL::ObserverSingle::~ObserverSingle ( ) [inline, virtual]

Destructor.

References notify_destructed().


Member Function Documentation

bool ObjexxFCL::ObserverSingle::has_observer ( ) const [inline, virtual]

Has At Least One Observer?

Implements ObjexxFCL::Observer.

void ObjexxFCL::ObserverSingle::insert_observer ( Observer observer) const [inline, virtual]

Insert an Observer.

Implements ObjexxFCL::Observer.

References ObjexxFCL::Observer::acyclic().

void ObjexxFCL::ObserverSingle::notify_destructed ( ) const [inline]

Notify Observers That This Subject is Being Destructed.

References ObjexxFCL::Observer::destructed().

Referenced by ~ObserverSingle().

Observer* ObjexxFCL::ObserverSingle::observer_p ( ) const [inline]
ObserverSingle& ObjexxFCL::ObserverSingle::operator= ( ObserverSingle const &  ) [inline, protected]

Copy Assignment.

void ObjexxFCL::ObserverSingle::remove_observer ( Observer observer) const [inline, virtual]

Remove an Observer.

Implements ObjexxFCL::Observer.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines