iterates through the IntVects of a Box
More...
#include <AMReX_BoxIterator.H>
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) }
◆ BoxIterator() [1/2]
amrex::BoxIterator::BoxIterator |
( |
| ) |
|
|
defaultnoexcept |
Default constructor. This constructs an invalid iterator. The user must call define before using.
◆ BoxIterator() [2/2]
amrex::BoxIterator::BoxIterator |
( |
const Box & |
a_bx | ) |
|
|
inlineexplicitnoexcept |
Constructs a BoxIterator and associates it with a Box. Arguments: a_bx (not modified) the Box to iterate over.
◆ begin()
void amrex::BoxIterator::begin |
( |
| ) |
|
|
inlinenoexcept |
Sets this BoxIterator to the first IntVect in its Box. The definition of the "first" IntVect is implementation-dependent.
◆ define()
void amrex::BoxIterator::define |
( |
const Box & |
a_bx | ) |
|
|
noexcept |
Associates a Box with this BoxIterator. Arguments: a_bx (not modified) the Box to iterate over.
◆ next()
void amrex::BoxIterator::next |
( |
| ) |
|
|
inlinenoexcept |
◆ ok()
bool amrex::BoxIterator::ok |
( |
| ) |
|
|
inlinenoexcept |
Returns true if this BoxIterator's location is within its Box.
◆ operator()()
const IntVect & amrex::BoxIterator::operator() |
( |
| ) |
const |
|
inlinenoexcept |
Returns the value of the InVect for the current location of this BoxIterator.
◆ operator++()
void amrex::BoxIterator::operator++ |
( |
| ) |
|
|
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.
◆ reset()
void amrex::BoxIterator::reset |
( |
| ) |
|
|
inlinenoexcept |
Sets this BoxIterator to the first IntVect in its Box. The definition of the "first" IntVect is implementation-dependent.
◆ setBox()
void amrex::BoxIterator::setBox |
( |
const Box & |
a_bx | ) |
|
|
noexcept |
◆ m_boxHi
◆ m_boxLo
◆ m_current
The documentation for this class was generated from the following files: