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

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

#include <Observer.hh>

Inheritance diagram for ObjexxFCL::Observer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~Observer ()
 Destructor.
virtual void insert_observer (Observer &) const =0
 Insert an Observer.
virtual void remove_observer (Observer &) const =0
 Remove an Observer.
virtual bool has_observer () const =0
 Has At Least One Observer?
void notify () const
 Notify Observers That This Subject Has Changed.
bool acyclic (Observer &) const
 Acyclic After Adding an Observer of This Subject?
virtual void update ()=0
 Update.
virtual void destructed (Subject const &)=0
 Update for Destruction of a Subject.

Protected Member Functions

 Observer ()
 Default Constructor.
 Observer (Observer const &)
 Copy Constructor.
Observeroperator= (Observer const &)
 Copy Assignment.

Detailed Description

Observer: Combined Subject + Observer Abstract Base Class.


Constructor & Destructor Documentation

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

Default Constructor.

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

Copy Constructor.

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

Destructor.


Member Function Documentation

bool ObjexxFCL::Observer::acyclic ( Observer observer) const

Acyclic After Adding an Observer of This Subject?

Referenced by ObjexxFCL::ObserverSingle::insert_observer(), and ObjexxFCL::ObserverMulti::insert_observer().

virtual void ObjexxFCL::Observer::destructed ( Subject const &  ) [pure virtual]
virtual bool ObjexxFCL::Observer::has_observer ( ) const [pure virtual]

Has At Least One Observer?

Implemented in ObjexxFCL::ObserverMulti, and ObjexxFCL::ObserverSingle.

Referenced by notify().

virtual void ObjexxFCL::Observer::insert_observer ( Observer ) const [pure virtual]
void ObjexxFCL::Observer::notify ( ) const

Notify Observers That This Subject Has Changed.

References has_observer().

Referenced by ObjexxFCL::DynamicIndexRange::assign(), ObjexxFCL::Dimension::assign_if(), ObjexxFCL::Dimension::assign_if_bigger(), ObjexxFCL::Dimension::assign_if_half(), ObjexxFCL::Dimension::assign_value_of(), ObjexxFCL::KeyFArray6D< T >::clear(), ObjexxFCL::KeyFArray5D< T >::clear(), ObjexxFCL::KeyFArray4D< T >::clear(), ObjexxFCL::KeyFArray3D< T >::clear(), ObjexxFCL::KeyFArray2D< T >::clear(), ObjexxFCL::KeyFArray1D< T >::clear(), ObjexxFCL::FArray6D< T >::clear(), ObjexxFCL::FArray5D< T >::clear(), ObjexxFCL::FArray4D< T >::clear(), ObjexxFCL::FArray3D< T >::clear(), ObjexxFCL::FArray2D< double >::clear(), ObjexxFCL::FArray1D< double >::clear(), ObjexxFCL::DynamicIndexRange::clear(), ObjexxFCL::Dimension::clear(), ObjexxFCL::DynamicIndexRange::contain(), ObjexxFCL::DynamicIndexRange::contain_nic(), ObjexxFCL::KeyFArray6D< T >::dimension(), ObjexxFCL::KeyFArray5D< T >::dimension(), ObjexxFCL::KeyFArray4D< T >::dimension(), ObjexxFCL::KeyFArray3D< T >::dimension(), ObjexxFCL::KeyFArray2D< T >::dimension(), ObjexxFCL::KeyFArray1D< T >::dimension(), ObjexxFCL::FArray6D< T >::dimension(), ObjexxFCL::FArray5D< T >::dimension(), ObjexxFCL::FArray4D< T >::dimension(), ObjexxFCL::FArray3D< T >::dimension(), ObjexxFCL::FArray2D< double >::dimension(), ObjexxFCL::FArray1D< double >::dimension(), ObjexxFCL::KeyFArray6D< T >::dimension_assign(), ObjexxFCL::KeyFArray5D< T >::dimension_assign(), ObjexxFCL::KeyFArray4D< T >::dimension_assign(), ObjexxFCL::KeyFArray3D< T >::dimension_assign(), ObjexxFCL::KeyFArray2D< T >::dimension_assign(), ObjexxFCL::KeyFArray1D< T >::dimension_assign(), ObjexxFCL::FArray6D< T >::dimension_assign(), ObjexxFCL::FArray5D< T >::dimension_assign(), ObjexxFCL::FArray4D< T >::dimension_assign(), ObjexxFCL::FArray3D< T >::dimension_assign(), ObjexxFCL::FArray2D< double >::dimension_assign(), ObjexxFCL::FArray1D< double >::dimension_assign(), ObjexxFCL::DynamicIndexRange::intersect(), ObjexxFCL::DynamicIndexRange::intersect_nic(), ObjexxFCL::DynamicIndexRange::l(), ObjexxFCL::Dimension::operator*=(), ObjexxFCL::Dimension::operator++(), ObjexxFCL::Dimension::operator+=(), ObjexxFCL::Dimension::operator--(), ObjexxFCL::Dimension::operator-=(), ObjexxFCL::Dimension::operator/=(), ObjexxFCL::DynamicIndexRange::operator=(), ObjexxFCL::Dimension::operator=(), ObjexxFCL::KeyFArray6D< T >::swap(), ObjexxFCL::KeyFArray5D< T >::swap(), ObjexxFCL::KeyFArray4D< T >::swap(), ObjexxFCL::KeyFArray3D< T >::swap(), ObjexxFCL::KeyFArray2D< T >::swap(), ObjexxFCL::KeyFArray1D< T >::swap(), ObjexxFCL::FArray6D< T >::swap(), ObjexxFCL::FArray5D< T >::swap(), ObjexxFCL::FArray4D< T >::swap(), ObjexxFCL::FArray3D< T >::swap(), ObjexxFCL::FArray2D< double >::swap(), ObjexxFCL::FArray1D< double >::swap(), ObjexxFCL::DynamicIndexRange::swap(), ObjexxFCL::Dimension::swap(), and ObjexxFCL::DynamicIndexRange::u().

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

Copy Assignment.

virtual void ObjexxFCL::Observer::remove_observer ( Observer ) const [pure virtual]
virtual void ObjexxFCL::Observer::update ( ) [pure virtual]

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