BoxIterator Class Reference
iterates through the IntVects of a Box
More...
#include <BoxIterator.H>
Collaboration diagram for BoxIterator:
[legend]List of all members.
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:
Box b; ... BoxIterator bit (b); for (bit.begin(); bit.ok(); ++bit) { IntVect iv = bit(); (do operations involving iv) }
Constructor & Destructor Documentation
BoxIterator::BoxIterator |
( |
|
) |
|
|
|
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. Arguments: bx (not modified) the Box to iterate over. |
|
Copy constructor. Arguments: tx (not modified) the BoxIterator to copy. |
Member Function Documentation
void BoxIterator::begin |
( |
|
) |
|
|
|
Sets this BoxIterator to the first IntVect in its Box. The definition of the "first" IntVect is implementation-dependent. |
void BoxIterator::define |
( |
const Box & |
bx |
) |
|
|
|
Associates a Box with this BoxIterator. Arguments: bx (not modified) the Box to iterate over. |
void BoxIterator::next |
( |
|
) |
|
|
|
Returns true if this BoxIterator's location is within its Box. |
const IntVect& BoxIterator::operator() |
( |
|
) |
const |
|
|
Returns the value of the InVect for the current location of this BoxIterator. |
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. |
void BoxIterator::reset |
( |
|
) |
|
|
|
Sets this BoxIterator to the first IntVect in its Box. The definition of the "first" IntVect is implementation-dependent. |
void BoxIterator::setBox |
( |
const Box & |
bx |
) |
|
|
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Wed Jun 2 13:58:20 2004 for Chombo&INSwithParticles by
1.3.2