#include <FabArray.H>
Public Member Functions | |
MFIter (const FabArrayBase &fabarray) | |
Construct a MFIter. | |
const Box & | validbox () const |
Returns the Box at the current index in the underlying BoxArray. | |
Box | fabbox () const |
Returns the Box of the FAB at which we currently point. | |
void | operator++ () |
Increments iterator to the next FAB in the FabArray that we own. | |
bool | isValid () |
Is the iterator valid i.e. is it associated with a FAB? | |
int | index () const |
The index into the underlying BoxArray of the current FAB. | |
const FabArrayBase & | theFabArrayBase () const |
Constant reference to FabArray over which we're iterating. | |
Static Public Member Functions | |
static void | setDebugging (bool debugging) |
Protected Attributes | |
const FabArrayBase & | fabArray |
int | currentIndex |
bool | m_debugging |
Static Protected Attributes | |
static bool | g_debugging = false |
MFIter::MFIter | ( | const FabArrayBase & | fabarray | ) | [explicit] |
Construct a MFIter.
References currentIndex, FabArrayBase::DistributionMap(), fabArray, and ParallelDescriptor::MyProc().
const Box & MFIter::validbox | ( | ) | const |
Returns the Box at the current index in the underlying BoxArray.
References FabArrayBase::box(), currentIndex, and fabArray.
Box MFIter::fabbox | ( | ) | const |
Returns the Box of the FAB at which we currently point.
References currentIndex, fabArray, and FabArrayBase::fabbox().
void MFIter::operator++ | ( | ) |
Increments iterator to the next FAB in the FabArray that we own.
References currentIndex, FabArrayBase::DistributionMap(), fabArray, and ParallelDescriptor::MyProc().
bool MFIter::isValid | ( | ) |
Is the iterator valid i.e. is it associated with a FAB?
References ParallelDescriptor::Barrier(), BL_ASSERT, currentIndex, fabArray, m_debugging, and FabArrayBase::size().
int MFIter::index | ( | ) | const [inline] |
The index into the underlying BoxArray of the current FAB.
References currentIndex.
Referenced by FabArray< FAB >::get(), and FabArray< FAB >::operator[]().
const FabArrayBase & MFIter::theFabArrayBase | ( | ) | const [inline] |
void MFIter::setDebugging | ( | bool | debugging | ) | [static] |
References g_debugging.
bool MFIter::g_debugging = false [static, protected] |
Referenced by setDebugging().
const FabArrayBase& MFIter::fabArray [protected] |
Referenced by fabbox(), isValid(), MFIter(), operator++(), theFabArrayBase(), and validbox().
int MFIter::currentIndex [protected] |
Referenced by fabbox(), index(), isValid(), MFIter(), operator++(), and validbox().
bool MFIter::m_debugging [protected] |
Referenced by isValid().