IBAMR  IBAMR version 0.19.
Public Member Functions | Private Attributes | List of all members
SAMRAI::xfer::LocallyActiveDataFillBox< DIM > Class Template Reference

#include <LocallyActiveDataFillBox.h>

Public Member Functions

 LocallyActiveDataFillBox (const hier::Box< DIM > &box, const tbox::List< const typename xfer::RefineClasses< DIM >::Data * > &var_data)
 Construct a locally-active fill box with the given box and list of refine items. Note that this object maintains pointers to the given box and refine items only. So, an object of this class becomes unusable if those items are destroyed before this object. More...
 
 LocallyActiveDataFillBox (const hier::Box< DIM > &box, const tbox::List< const typename xfer::CoarsenClasses< DIM >::Data * > &var_data)
 Construct a locally-active fill box with the given box and list of coarsen items. Note that this object maintains pointers to the given box and coarsen items only. So, an object of this class becomes unusable if those items are destroyed before this object. More...
 
 LocallyActiveDataFillBox (const LocallyActiveDataFillBox< DIM > &fill_box)
 
virtual ~LocallyActiveDataFillBox ()
 
const hier::Box< DIM > & getBox () const
 
const tbox::List< const typename RefineClasses< DIM >::Data * > & getActiveRefineVarData () const
 
const tbox::List< const typename xfer::CoarsenClasses< DIM >::Data * > & getActiveCoarsenVarData () const
 
virtual void printClassData (std::ostream &os) const
 
void clearLocallyActiveFillBoxData ()
 
bool checkData (const hier::Box< DIM > &box, const tbox::List< const typename xfer::RefineClasses< DIM >::Data * > &var_data, std::ostream &os) const
 Check given box and list of refine items for equality with those maintained by this class object. Any encountered inequality will be sent to the given output stream. More...
 
bool checkData (const hier::Box< DIM > &box, const tbox::List< const typename xfer::CoarsenClasses< DIM >::Data * > &var_data, std::ostream &os) const
 Check given box and list of coarsen items for equality with those maintained by this class object. Any encountered inequality will be sent to the given output stream. More...
 

Private Attributes

const hier::Box< DIM > * d_box
 
tbox::List< const typename xfer::RefineClasses< DIM >::Data * > d_refine_var_data
 
tbox::List< const typename xfer::CoarsenClasses< DIM >::Data * > d_coarsen_var_data
 
bool d_refine_data
 

Detailed Description

template<int DIM>
class SAMRAI::xfer::LocallyActiveDataFillBox< DIM >

Class LocallyActiveDataFillBox is a utility class that is used primarily by the LocallyActiveDataFillBoxSet class for boxlist operations in communication schedules that operate on "locally-active" data; i.e., where each data item may live on a different set of patches. Specifically, this class contains a box and an associated list of either CoarseClass or RefineClass items, but not both.
Each constructor accepts such a list. Once an object is constructed, it can only be used to support either refine operations or coarsen operations.

See also
hier::Box
xfer::CoarsenClasses
xfer::RefineClasses

Constructor & Destructor Documentation

◆ LocallyActiveDataFillBox() [1/3]

template<int DIM>
SAMRAI::xfer::LocallyActiveDataFillBox< DIM >::LocallyActiveDataFillBox ( const hier::Box< DIM > &  box,
const tbox::List< const typename xfer::RefineClasses< DIM >::Data * > &  var_data 
)
Parameters
boxInput box.
var_dataInput list of refine class data pointers.

◆ LocallyActiveDataFillBox() [2/3]

template<int DIM>
SAMRAI::xfer::LocallyActiveDataFillBox< DIM >::LocallyActiveDataFillBox ( const hier::Box< DIM > &  box,
const tbox::List< const typename xfer::CoarsenClasses< DIM >::Data * > &  var_data 
)
Parameters
boxInput box.
var_dataInput list of coarsen class data pointers.

◆ LocallyActiveDataFillBox() [3/3]

template<int DIM>
SAMRAI::xfer::LocallyActiveDataFillBox< DIM >::LocallyActiveDataFillBox ( const LocallyActiveDataFillBox< DIM > &  fill_box)

Copy constructor to create a new locally-active fill box and copy the information from the argument locally-active fill box.

Parameters
fill_boxConstant reference to fill box to be copied.

◆ ~LocallyActiveDataFillBox()

template<int DIM>
virtual SAMRAI::xfer::LocallyActiveDataFillBox< DIM >::~LocallyActiveDataFillBox ( )
virtual

The destructor releases all box and locally-active data storage.

Member Function Documentation

◆ getBox()

template<int DIM>
const hier::Box<DIM>& SAMRAI::xfer::LocallyActiveDataFillBox< DIM >::getBox ( ) const

Return constant reference to box maintained by this object.

◆ getActiveRefineVarData()

template<int DIM>
const tbox::List<const typename RefineClasses<DIM>::Data*>& SAMRAI::xfer::LocallyActiveDataFillBox< DIM >::getActiveRefineVarData ( ) const

Return constant reference to list of refine items maintained by this object.

Note that if this object was created using coarsen item data, an unrecoverable assertion will result.

◆ getActiveCoarsenVarData()

template<int DIM>
const tbox::List<const typename xfer::CoarsenClasses<DIM>::Data*>& SAMRAI::xfer::LocallyActiveDataFillBox< DIM >::getActiveCoarsenVarData ( ) const

Return constant reference to list of coarsen items maintained by this object.

Note that if this object was created using refine item data, an unrecoverable assertion will result.

◆ printClassData()

template<int DIM>
virtual void SAMRAI::xfer::LocallyActiveDataFillBox< DIM >::printClassData ( std::ostream &  os) const
virtual

Print all class member data for this locally-active fill box object to specified output stream.

◆ clearLocallyActiveFillBoxData()

template<int DIM>
void SAMRAI::xfer::LocallyActiveDataFillBox< DIM >::clearLocallyActiveFillBoxData ( )

Clear all class member data for this locally-active fill box object.

◆ checkData() [1/2]

template<int DIM>
bool SAMRAI::xfer::LocallyActiveDataFillBox< DIM >::checkData ( const hier::Box< DIM > &  box,
const tbox::List< const typename xfer::RefineClasses< DIM >::Data * > &  var_data,
std::ostream &  os 
) const
Returns
Boolean true if equal, false otherwise.
Parameters
boxInput box for comparison.
var_dataInput list of refine items for comparison.
osInput ostream for reporting mismatches.

Note that if this object was created using coarsen item data, an unrecoverable assertion will result.

◆ checkData() [2/2]

template<int DIM>
bool SAMRAI::xfer::LocallyActiveDataFillBox< DIM >::checkData ( const hier::Box< DIM > &  box,
const tbox::List< const typename xfer::CoarsenClasses< DIM >::Data * > &  var_data,
std::ostream &  os 
) const
Returns
Boolean true if equal, false otherwise.
Parameters
boxInput box for comparison.
var_dataInput list of coarsen items for comparison.
osInput ostream for reporting mismatches.

Note that if this object was created using refine item data, an unrecoverable assertion will result.

Member Data Documentation

◆ d_box

template<int DIM>
const hier::Box<DIM>* SAMRAI::xfer::LocallyActiveDataFillBox< DIM >::d_box
private

◆ d_refine_var_data

template<int DIM>
tbox::List<const typename xfer::RefineClasses<DIM>::Data*> SAMRAI::xfer::LocallyActiveDataFillBox< DIM >::d_refine_var_data
private

◆ d_coarsen_var_data

template<int DIM>
tbox::List<const typename xfer::CoarsenClasses<DIM>::Data*> SAMRAI::xfer::LocallyActiveDataFillBox< DIM >::d_coarsen_var_data
private

◆ d_refine_data

template<int DIM>
bool SAMRAI::xfer::LocallyActiveDataFillBox< DIM >::d_refine_data
private

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