#include <MultiGrid.H>
Public Member Functions | |
MGLevelOpObserver () | |
Base level Constructor. Called by all subclasses. | |
virtual | ~MGLevelOpObserver () |
Destructor. | |
virtual void | operatorChanged (const MGLevelOp< T > &a_operator) |
void | setObservee (MGLevelOp< T > *a_observee) |
void | clearObservee () |
Private Member Functions | |
MGLevelOpObserver (const MGLevelOpObserver &) | |
MGLevelOpObserver & | operator= (const MGLevelOpObserver &) |
Private Attributes | |
MGLevelOp< T > * | m_op |
MGLevelOpObserver< T >::MGLevelOpObserver | ( | ) | [inline] |
Base level Constructor. Called by all subclasses.
MGLevelOpObserver< T >::~MGLevelOpObserver | ( | ) | [inline, virtual] |
MGLevelOpObserver< T >::MGLevelOpObserver | ( | const MGLevelOpObserver< T > & | ) | [private] |
virtual void MGLevelOpObserver< T >::operatorChanged | ( | const MGLevelOp< T > & | a_operator | ) | [inline, virtual] |
Use this to implement the response of the observer to changes in the observee.
a_operator | The operator whose state has changed. Passed to the observer by the operator itself. |
void MGLevelOpObserver< T >::setObservee | ( | MGLevelOp< T > * | a_observee | ) | [inline] |
This gets called by the observee when this observer is added to it. DO NOT CALL THIS METHOD DIRECTLY.
a_observee | The object being observed by this observer. |
Referenced by MGLevelOp< LevelData< NodeFArrayBox > >::addObserver().
void MGLevelOpObserver< T >::clearObservee | ( | ) | [inline] |
This gets called by the observee when it is destroyed. DO NOT CALL THIS METHOD DIRECTLY.
Referenced by MGLevelOp< LevelData< NodeFArrayBox > >::~MGLevelOp().
MGLevelOpObserver& MGLevelOpObserver< T >::operator= | ( | const MGLevelOpObserver< T > & | ) | [private] |
MGLevelOp<T>* MGLevelOpObserver< T >::m_op [private] |