MGLevelOpObserver< T > Class Template Reference

#include <MultiGrid.H>

Inheritance diagram for MGLevelOpObserver< T >:

Inheritance graph
[legend]

List of all members.


Detailed Description

template<typename T>
class MGLevelOpObserver< T >

This observer class allows objects to be notified when coefficient data for an operator changes.

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 &)
MGLevelOpObserveroperator= (const MGLevelOpObserver &)

Private Attributes

MGLevelOp< T > * m_op

Constructor & Destructor Documentation

template<typename T>
MGLevelOpObserver< T >::MGLevelOpObserver (  )  [inline]

Base level Constructor. Called by all subclasses.

template<typename T>
MGLevelOpObserver< T >::~MGLevelOpObserver (  )  [inline, virtual]

Destructor.

References MGLevelOpObserver< T >::m_op.

template<typename T>
MGLevelOpObserver< T >::MGLevelOpObserver ( const MGLevelOpObserver< T > &   )  [private]


Member Function Documentation

template<typename T>
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.

Parameters:
a_operator The operator whose state has changed. Passed to the observer by the operator itself.

template<typename T>
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.

Parameters:
a_observee The object being observed by this observer.

Referenced by MGLevelOp< LevelData< NodeFArrayBox > >::addObserver().

template<typename T>
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().

template<typename T>
MGLevelOpObserver& MGLevelOpObserver< T >::operator= ( const MGLevelOpObserver< T > &   )  [private]


Member Data Documentation

template<typename T>
MGLevelOp<T>* MGLevelOpObserver< T >::m_op [private]


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

Generated on Fri Apr 5 04:25:11 2019 for Chombo + EB by  doxygen 1.5.5