iterates through the IntVects of a Box More...
#include <AMReX_BoxIterator.H>
Public Member Functions | |
BoxIterator () noexcept=default | |
BoxIterator (const Box &a_bx) noexcept | |
void | setBox (const Box &a_bx) noexcept |
void | define (const Box &a_bx) noexcept |
void | begin () noexcept |
void | reset () noexcept |
void | operator++ () noexcept |
void | next () noexcept |
const IntVect & | operator() () const noexcept |
bool | ok () noexcept |
Protected Attributes | |
IntVect | m_current = IntVect::TheUnitVector() |
IntVect | m_boxLo = IntVect::TheUnitVector() |
IntVect | m_boxHi = IntVect::TheZeroVector() |
iterates through the IntVects of a Box
BoxIterator iterates through the IntVects of a box. The actual sequence 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) }
|
defaultnoexcept |
Default constructor. This constructs an invalid iterator. The user must call define before using.
|
inlineexplicitnoexcept |
Constructs a BoxIterator and associates it with a Box. Arguments: a_bx (not modified) the Box to iterate over.
|
inlinenoexcept |
Sets this BoxIterator to the first IntVect in its Box. The definition of the "first" IntVect is implementation-dependent.
|
noexcept |
Associates a Box with this BoxIterator. Arguments: a_bx (not modified) the Box to iterate over.
|
inlinenoexcept |
|
inlinenoexcept |
Returns true if this BoxIterator's location is within its Box.
|
inlinenoexcept |
Returns the value of the InVect for the current location of this BoxIterator.
|
inlinenoexcept |
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.
|
inlinenoexcept |
Sets this BoxIterator to the first IntVect in its Box. The definition of the "first" IntVect is implementation-dependent.
|
noexcept |
|
protected |
|
protected |
|
protected |