MFIter Class Reference

#include <FabArray.H>

Collaboration diagram for MFIter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 MFIter (const FabArrayBase &fabarray)
 Construct a MFIter.
const Boxvalidbox () 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 FabArrayBasetheFabArrayBase () const
 Constant reference to FabArray over which we're iterating.

Static Public Member Functions

static void setDebugging (bool debugging)

Protected Attributes

const FabArrayBasefabArray
int currentIndex
bool m_debugging

Static Protected Attributes

static bool g_debugging = false


Constructor & Destructor Documentation

MFIter::MFIter ( const FabArrayBase fabarray  )  [explicit]


Member Function Documentation

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]

Constant reference to FabArray over which we're iterating.

References fabArray.

void MFIter::setDebugging ( bool  debugging  )  [static]

References g_debugging.


Member Data Documentation

bool MFIter::g_debugging = false [static, protected]

Referenced by setDebugging().

const FabArrayBase& MFIter::fabArray [protected]

int MFIter::currentIndex [protected]

bool MFIter::m_debugging [protected]

Referenced by isValid().


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

Generated on Fri Nov 21 10:11:02 2008 for AMRParticlePaths by  doxygen 1.5.5