BoxIterator Class Reference
#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 |
( |
|
) |
[inline] |
|
|
|
Default constructor. This constructs an invalid iterator. The user must call define before using. |
| BoxIterator::BoxIterator |
( |
const Box & |
a_bx |
) |
[inline] |
|
|
|
Constructs a BoxIterator and associates it with a Box. Arguments: a_bx (not modified) the Box to iterate over. |
| BoxIterator::BoxIterator |
( |
const BoxIterator & |
a_iterIn |
) |
[inline] |
|
|
|
Copy constructor. Arguments: a_iterIn (not modified) the BoxIterator to copy. |
Member Function Documentation
| void BoxIterator::setBox |
( |
const Box & |
a_bx |
) |
|
|
| void BoxIterator::define |
( |
const Box & |
a_bx |
) |
|
|
|
|
Associates a Box with this BoxIterator. Arguments: a_bx (not modified) the Box to iterate over. |
| void BoxIterator::begin |
( |
|
) |
[inline] |
|
|
|
Sets this BoxIterator to the first IntVect in its Box. The definition of the "first" IntVect is implementation-dependent. |
| void BoxIterator::reset |
( |
|
) |
[inline] |
|
|
|
Sets this BoxIterator to the first IntVect in its Box. The definition of the "first" IntVect is implementation-dependent. |
| void BoxIterator::operator++ |
( |
|
) |
[inline] |
|
|
|
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::next |
( |
|
) |
[inline] |
|
| const IntVect & BoxIterator::operator() |
( |
|
) |
const [inline] |
|
|
|
Returns the value of the InVect for the current location of this BoxIterator. |
| bool BoxIterator::ok |
( |
|
) |
[inline] |
|
|
|
Returns true if this BoxIterator's location is within its Box. |
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Fri May 4 13:31:35 2007 for Chombo by
1.3.6