Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BoxIterator Class Reference

iterates through the IntVects of a Box More...

#include <BoxIterator.H>

Collaboration diagram for BoxIterator:

Collaboration graph
[legend]
List of all members.

Public Methods

 BoxIterator ()
 {\bf Constructors, destructors, defines}

 BoxIterator (const Box &bx)
void setBox (const Box &bx)
void define (const Box &bx)
 BoxIterator (const BoxIterator &tx)
 ~BoxIterator ()
void begin ()
 {\bf Modification functions}

void reset ()
void operator++ ()
void next ()
const IntVectoperator() () const
bool ok ()

Protected Attributes

IntVect m_current
IntVect m_boxLo
IntVect m_boxHi

Detailed Description

iterates through the IntVects of a Box

BoxIterator iterates through the IntVects of a box. The actual sqeuence of IntVects is implementation-specific. Typical usage:\

\begin{verbatim} Box b; ... BoxIterator bit (b); for (bit.begin(); bit.ok(); ++bit) { IntVect iv = bit(); (do operations involving iv) } \end{verbatim}


Constructor & Destructor Documentation

BoxIterator::BoxIterator  
 

{\bf Constructors, destructors, defines}

Default constructor. This constructs an invalid iterator. The user must call define before using.

BoxIterator::BoxIterator const Box   bx
 

Constructs a BoxIterator and associates it with a Box.\ {\bf Arguments:}\ bx (not modified) the Box to iterate over.\ {\bf Returns:} none.\ {\bf This:}\ This object is modified.

BoxIterator::BoxIterator const BoxIterator &    tx
 

Copy constructor.\ {\bf Arguments:}\ tx (not modified) the BoxIterator to copy.\ {\bf Returns:} none.\ {\bf This:}\ This object is modified.

BoxIterator::~BoxIterator  
 

Destructor.


Member Function Documentation

void BoxIterator::begin  
 

{\bf Modification functions}

Sets this BoxIterator to the first IntVect in its Box. The definition of the "first" IntVect is implementation-dependent.\ {\bf Arguments:} none.\ {\bf Returns:} none.\ {\bf This:}\ This object is modified.

void BoxIterator::define const Box   bx
 

Associates a Box with this BoxIterator.\ {\bf Arguments:}\ bx (not modified) the Box to iterate over. \ {\bf Returns:} none.\ {\bf This:}\ This object is modified.

void BoxIterator::next  
 

bool BoxIterator::ok  
 

Returns true if this BoxIterator's location is within its Box.\ {\bf Arguments:} none.\ {\bf Returns:} \ true if this BoxIterator's current location is in its Box.\ {\bf This:}\ This object is not modified.

const IntVect& BoxIterator::operator()   const
 

Returns the value of the InVect for the current location of this BoxIterator.\ {\bf Arguments:} none.\ {\bf Returns:} \ the value of the intvect for the current location.\ {\bf This:}\ This object is not modified.

void BoxIterator::operator++  
 

Modifies this BoxIterator to set it to the next location in its Box. The definition of the "next location" of a Box is implementation-dependent.\ {\bf Arguments:} none. \ {\bf Returns:} none. \ {\bf This:} \This object is modified.

void BoxIterator::reset  
 

Sets this BoxIterator to the first IntVect in its Box. The definition of the "first" IntVect is implementation-dependent.\ {\bf Arguments:} none.\ {\bf Returns:} none.\ {\bf This:}\ This object is modified.

void BoxIterator::setBox const Box   bx
 


Member Data Documentation

IntVect BoxIterator::m_boxHi [protected]
 

IntVect BoxIterator::m_boxLo [protected]
 

IntVect BoxIterator::m_current [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Apr 16 14:35:02 2003 for EBChombo by doxygen1.2.16