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

BoxIteratorold Class Reference

iterates through the IntVects of a Box More...

#include <BoxIteratorOld.H>

Collaboration diagram for BoxIteratorold:

Collaboration graph
[legend]
List of all members.

Public Methods

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

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

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

Protected Attributes

Box box_ptr
Tuple< int, SpaceDimnx
Tuple< int, SpaceDimiloc
Tuple< int, SpaceDimlen
IntVect current
IntVect offset
int icur

Detailed Description

iterates through the IntVects of a Box

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

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


Constructor & Destructor Documentation

BoxIteratorold::BoxIteratorold   [inline]
 

{\bf Constructors, destructors, defines}

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

BoxIteratorold::BoxIteratorold const Box   bx [inline]
 

Constructs a BoxIteratorold 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.

BoxIteratorold::BoxIteratorold const BoxIteratorold &    tx [inline]
 

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

BoxIteratorold::~BoxIteratorold   [inline]
 

Destructor.


Member Function Documentation

void BoxIteratorold::begin   [inline]
 

{\bf Modification functions}

Sets this BoxIteratorold 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 BoxIteratorold::define const Box   bx [inline]
 

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

void BoxIteratorold::next   [inline]
 

bool BoxIteratorold::ok   [inline]
 

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

const IntVect& BoxIteratorold::operator()   const [inline]
 

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

void BoxIteratorold::operator++   [inline]
 

Modifies this BoxIteratorold 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 BoxIteratorold::reset   [inline]
 

Sets this BoxIteratorold 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 BoxIteratorold::setBox const Box   bx [inline]
 


Member Data Documentation

Box BoxIteratorold::box_ptr [protected]
 

IntVect BoxIteratorold::current [protected]
 

int BoxIteratorold::icur [protected]
 

Tuple<int, SpaceDim> BoxIteratorold::iloc [protected]
 

Tuple<int, SpaceDim> BoxIteratorold::len [protected]
 

Tuple<int, SpaceDim> BoxIteratorold::nx [protected]
 

IntVect BoxIteratorold::offset [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Apr 16 14:27:36 2003 for Chombo by doxygen1.2.16