Chombo + EB + MF
3.2
|
iterates through the MBStencilElements of a MBStencil. More...
#include <MBStencilIterator.H>
Public Member Functions | |
MBStencilIterator () | |
MBStencilIterator (const MBStencil &a_stencil) | |
void | setStencil (const MBStencil &a_stencil) |
void | define (const MBStencil &a_stencil) |
MBStencilIterator (const MBStencilIterator &a_iterIn) | |
~MBStencilIterator () | |
void | begin () |
void | reset () |
void | operator++ () |
void | next () |
const MBStencilElement & | operator() () const |
bool | ok () |
Protected Attributes | |
MBStencil | m_stencil |
int | m_indCurrent |
int | m_indLo |
int | m_indHi |
iterates through the MBStencilElements of a MBStencil.
MBStencilIterator iterates through the MBStencilElements of a MBStencil.
MBStencil stencil; ... MBStencilIterator sit(stencil); for (sit.begin(); sit.ok(); ++sit) { const MBStencilElement& stencilElement = sit(); (do operations involving stencilElement) }
|
inline |
Default constructor. This constructs an invalid iterator. The user must call define before using.
References m_indCurrent, m_indHi, and m_indLo.
|
inline |
Constructs a MBStencilIterator and associates it with a Box. Arguments: a_bx (not modified) the Box to iterate over.
References define().
|
inline |
Copy constructor. Arguments: a_iterIn (not modified) the MBStencilIterator to copy.
References m_indCurrent, m_indHi, m_indLo, and m_stencil.
|
inline |
References begin(), next(), ok(), operator()(), operator++(), and reset().
void MBStencilIterator::setStencil | ( | const MBStencil & | a_stencil | ) |
void MBStencilIterator::define | ( | const MBStencil & | a_stencil | ) |
Associates a MBStencil with this MBStencilIterator. Arguments: a_stencil (not modified) the MBStencil to iterate over.
Referenced by MBStencilIterator().
|
inline |
Sets this MBStencilIterator to first MBStencilElement in its MBStencil.
References m_indCurrent, m_indHi, and m_indLo.
Referenced by reset(), and ~MBStencilIterator().
|
inline |
Sets this MBStencilIterator to first MBStencilElement in its MBStencil.
References begin().
Referenced by ~MBStencilIterator().
|
inline |
Modifies this MBStencilIterator to set it to the next MBStencilElement in its MBStencil.
References next().
Referenced by ~MBStencilIterator().
|
inline |
References m_indCurrent.
Referenced by operator++(), and ~MBStencilIterator().
|
inline |
Returns the value of the MBStencilElement for the current location of this MBStencilIterator.
References CH_assert, m_indCurrent, m_indHi, m_indLo, and m_stencil.
Referenced by ~MBStencilIterator().
|
inline |
Returns true if this MBStencilIterator's location is within its MBStencil.
References m_indCurrent, and m_indHi.
Referenced by ~MBStencilIterator().
|
protected |
Referenced by MBStencilIterator(), and operator()().
|
protected |
Referenced by begin(), MBStencilIterator(), next(), ok(), and operator()().
|
protected |
Referenced by begin(), MBStencilIterator(), and operator()().
|
protected |
Referenced by begin(), MBStencilIterator(), ok(), and operator()().