OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions
DataObserver Class Reference

#include <data_observer.hh>

Inherited by Argand, DataViewerPanelBase, and ParentDataObserver.

Public Member Functions

 DataObserver (const Data &d)
 DataObserver (const DataObserver &o)
DataObserveroperator= (const DataObserver &o)
virtual ~DataObserver ()
virtual void ObserverUpdate ()
virtual void ObserverUpdate (const Extent &)
virtual void ObserverUpdate (const Point &)
virtual void ObserverRelease ()=0
void ObserverInvalidate ()
virtual const DataGetObservedData () const
bool IsDataValid () const

Protected Member Functions

void SetObservedData (const Data &d)
bool is_valid () const

Detailed Description

Abstract base class of data observer.

Definition at line 60 of file data_observer.hh.


Constructor & Destructor Documentation

DataObserver ( const Data d)

constructor

requires reference to data, then attaches itself to data

DataObserver ( const DataObserver o)
virtual ~DataObserver ( )
virtual

Member Function Documentation

virtual const Data& GetObservedData ( ) const
virtual

Returns data that is observed.

bool is_valid ( ) const
protected
bool IsDataValid ( ) const
inline

Definition at line 97 of file data_observer.hh.

void ObserverInvalidate ( )

Called after ObserverRelease.

virtual void ObserverRelease ( )
pure virtual

Called if data is released from memory.

Implemented in DataViewerPanelBase, Argand, and ParentDataObserver.

virtual void ObserverUpdate ( )
virtual

called upon data change, noop by default

Reimplemented in DataViewerPanelBase, Argand, and FFTPanel.

virtual void ObserverUpdate ( const Extent )
virtual

special update, calls ObserverUpdate() by default

Reimplemented in DataViewerPanelBase, and Argand.

virtual void ObserverUpdate ( const Point )
virtual

special update, calls ObserverUpdate() by default

Reimplemented in DataViewerPanelBase, and Argand.

DataObserver& operator= ( const DataObserver o)
void SetObservedData ( const Data d)
protected

Set new data to observe.

Automatically unregister previously observed data


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