Chombo + EB + MF
3.2
|
iterates through the MBVectorStencilElements of a MBVectorStencil. More...
#include <MBVectorStencilIterator.H>
Public Member Functions | |
MBVectorStencilIterator () | |
MBVectorStencilIterator (const MBVectorStencil &a_stencil) | |
void | setStencil (const MBVectorStencil &a_stencil) |
void | define (const MBVectorStencil &a_stencil) |
MBVectorStencilIterator (const MBVectorStencilIterator &a_iterIn) | |
~MBVectorStencilIterator () | |
void | begin () |
void | reset () |
void | operator++ () |
void | next () |
const MBVectorStencilElement & | operator() () const |
bool | ok () |
Protected Attributes | |
MBVectorStencil | m_stencil |
int | m_indCurrent |
int | m_indLo |
int | m_indHi |
iterates through the MBVectorStencilElements of a MBVectorStencil.
MBVectorStencilIterator iterates through the MBVectorStencilElements of a MBVectorStencil.
MBVectorStencil stencil; ... MBVectorStencilIterator sit(stencil); for (sit.begin(); sit.ok(); ++sit) { const MBVectorStencilElement& 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 MBVectorStencilIterator 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 MBVectorStencilIterator to copy.
References m_indCurrent, m_indHi, m_indLo, and m_stencil.
|
inline |
References begin(), next(), ok(), operator()(), operator++(), and reset().
void MBVectorStencilIterator::setStencil | ( | const MBVectorStencil & | a_stencil | ) |
void MBVectorStencilIterator::define | ( | const MBVectorStencil & | a_stencil | ) |
Associates a MBVectorStencil with this MBVectorStencilIterator. Arguments: a_stencil (not modified) the MBVectorStencil to iterate over.
Referenced by MBVectorStencilIterator().
|
inline |
Sets this MBVectorStencilIterator to first MBVectorStencilElement in its MBVectorStencil.
References m_indCurrent, m_indHi, and m_indLo.
Referenced by reset(), and ~MBVectorStencilIterator().
|
inline |
Sets this MBVectorStencilIterator to first MBVectorStencilElement in its MBVectorStencil.
References begin().
Referenced by ~MBVectorStencilIterator().
|
inline |
Modifies this MBVectorStencilIterator to set it to the next MBVectorStencilElement in its MBVectorStencil.
References next().
Referenced by ~MBVectorStencilIterator().
|
inline |
References m_indCurrent.
Referenced by operator++(), and ~MBVectorStencilIterator().
|
inline |
Returns the value of the MBVectorStencilElement for the current location of this MBVectorStencilIterator.
References CH_assert, m_indCurrent, m_indHi, m_indLo, and m_stencil.
Referenced by ~MBVectorStencilIterator().
|
inline |
Returns true if this MBVectorStencilIterator's location is within its MBVectorStencil.
References m_indCurrent, and m_indHi.
Referenced by ~MBVectorStencilIterator().
|
protected |
Referenced by MBVectorStencilIterator(), and operator()().
|
protected |
Referenced by begin(), MBVectorStencilIterator(), next(), ok(), and operator()().
|
protected |
Referenced by begin(), MBVectorStencilIterator(), and operator()().
|
protected |
Referenced by begin(), MBVectorStencilIterator(), ok(), and operator()().