Chombo + EB  3.2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MGLevelOpObserver< T > Class Template Reference

#include <MultiGrid.H>

Inheritance diagram for MGLevelOpObserver< T >:
Inheritance graph
[legend]

Public Member Functions

 MGLevelOpObserver ()
 Base level Constructor. Called by all subclasses. More...
 
virtual ~MGLevelOpObserver ()
 Destructor. More...
 
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
 

Detailed Description

template<typename T>
class MGLevelOpObserver< T >

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

Constructor & Destructor Documentation

◆ MGLevelOpObserver() [1/2]

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

Base level Constructor. Called by all subclasses.

◆ ~MGLevelOpObserver()

template<typename T >
MGLevelOpObserver< T >::~MGLevelOpObserver ( )
virtual

◆ MGLevelOpObserver() [2/2]

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

Member Function Documentation

◆ operatorChanged()

template<typename T>
virtual void MGLevelOpObserver< T >::operatorChanged ( const MGLevelOp< T > &  a_operator)
inlinevirtual

Use this to implement the response of the observer to changes in the observee.

Parameters
a_operatorThe operator whose state has changed. Passed to the observer by the operator itself.

◆ setObservee()

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_observeeThe object being observed by this observer.

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

◆ clearObservee()

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().

◆ operator=()

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

Member Data Documentation

◆ m_op

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

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