Chombo + EB + MF
3.2
|
iterates through the IntVects on the surface of a Box More...
#include <BoundaryIterator.H>
Public Member Functions | |
BoundaryIterator () | |
BoundaryIterator (const Box &a_bx) | |
void | setBox (const Box &a_bx) |
void | define (const Box &a_bx) |
~BoundaryIterator () | |
void | begin () |
void | reset () |
void | operator++ () |
void | next () |
const IntVect & | operator() () const |
bool | ok () const |
const Box & | box () const |
void | nextBox () |
Protected Attributes | |
BoxIterator | m_current |
Box | m_box [CH_SPACEDIM *2] |
int | m_sdir |
iterates through the IntVects on the surface of a Box
BoundaryIterator iterates through the IntVects on the surface of a box. The actual sqeuence of IntVects is implementation-specific. Typical usage:
Box b; ... BoundaryIterator bit (b); for (bit.begin(); bit.ok(); ++bit) { IntVect iv = bit(); (do operations involving iv) }
|
inline |
Default constructor. This constructs an invalid iterator. The user must call define before using.
References CH_SPACEDIM, and m_sdir.
|
inline |
Constructs a BoundaryIterator and associates it with a Box. Arguments: a_bx (not modified) the Box to iterate over.
References define().
|
inline |
References begin(), box(), next(), nextBox(), ok(), operator()(), operator++(), and reset().
void BoundaryIterator::setBox | ( | const Box & | a_bx | ) |
void BoundaryIterator::define | ( | const Box & | a_bx | ) |
Associates a Box with this BoundaryIterator. Arguments: a_bx (not modified) the Box to iterate over.
Referenced by BoundaryIterator().
|
inline |
Sets this BoundaryIterator to the first IntVect in its Box. The definition of the "first" IntVect is implementation-dependent.
References BoxIterator::define(), m_box, m_current, and m_sdir.
Referenced by reset(), and ~BoundaryIterator().
|
inline |
Sets this BoundaryIterator to the first IntVect in its Box. The definition of the "first" IntVect is implementation-dependent.
References begin().
Referenced by ~BoundaryIterator().
|
inline |
Modifies this BoundaryIterator to set it to the next location in its Box. The definition of the "next location" of a Box is implementation-dependent.
References next().
Referenced by ~BoundaryIterator().
|
inline |
References BoxIterator::begin(), CH_SPACEDIM, BoxIterator::define(), m_box, m_current, m_sdir, BoxIterator::next(), and BoxIterator::ok().
Referenced by operator++(), and ~BoundaryIterator().
|
inline |
Returns the value of the InVect for the current location of this BoundaryIterator.
References m_current.
Referenced by ~BoundaryIterator().
|
inline |
Returns true if this BoundaryIterator's location is within its Box.
References CH_SPACEDIM, and m_sdir.
Referenced by box(), nextBox(), and ~BoundaryIterator().
|
inline |
Can request the current boundary box that this iterator is working on
References CH_assert, m_box, m_sdir, and ok().
Referenced by ~BoundaryIterator().
|
inline |
skip to the next boundary box in this iterator
References BoxIterator::define(), m_box, m_current, m_sdir, and ok().
Referenced by ~BoundaryIterator().
|
protected |
Referenced by begin(), next(), nextBox(), and operator()().
|
protected |
|
protected |