Chombo + EB
3.0
|
Iterator for an IntVectSet. More...
#include <IntVectSet.H>
Public Member Functions | |
IVSIterator () | |
IVSIterator (const IntVectSet &ivs) | |
~IVSIterator () | |
void | define (const IntVectSet &ivs) |
const IntVect & | operator() () const |
returns the IntVect that this iterator is at More... | |
const IntVect & | iv () const |
same as operator() More... | |
bool | ok () const |
returns true if this iterator is still in its IntVectSet More... | |
void | operator++ () |
move iterator to the next IntVect in its IntVectSet More... | |
void | incr () |
same as operator++ More... | |
void | begin () |
initialize this iterator to the first IntVect in its IntVectSet More... | |
void | reset () |
same as begin() More... | |
void | end () |
move this iterator to after the last IntVect in the set More... | |
Private Attributes | |
bool | m_isdense |
DenseIntVectSetIterator | m_dense |
TreeIntVectSetIterator | m_tree |
Iterator for an IntVectSet.
IVSIterator iterates over every point (IntVect) in an IntVectSet. It has exactly the same syntax and sematic as BoxIterator. Typical usage:
|
inline |
A default constructed iterator iterates over an empty IntVectSet. It starts in the begin()
state, and is never ok()
.
References IntVectSet::IVSIterator.
IVSIterator::IVSIterator | ( | const IntVectSet & | ivs | ) |
Iterates over IntVectSet ivs. There is no canonical ordering. Starts in the begin()
state.
|
inline |
References IntVectSet::define().
void IVSIterator::define | ( | const IntVectSet & | ivs | ) |
Modifies this IVSIterator to iterate over the IntVectSet ivs. There is no canonical ordering. Starts in the begin()
state.
|
inline |
returns the IntVect that this iterator is at
References IntVectSet::m_dense, and IntVectSet::m_isdense.
|
inline |
same as operator()
Referenced by IntVectSet::copy(), and IntVectSet::minus_intvect().
|
inline |
returns true if this iterator is still in its IntVectSet
References IntVectSet::m_dense, and IntVectSet::m_isdense.
Referenced by IVSFAB< T >::copy(), IVSFAB< T >::define(), BaseIFFAB< FaceStencil >::define(), MiniIVFAB< Real >::define(), BaseIVFAB< Real >::define(), IVSFAB< T >::linearIn(), IVSFAB< T >::linearOut(), and BaseEBCellFAB< Real >::setCoveredCellVal().
|
inline |
move iterator to the next IntVect in its IntVectSet
References IntVectSet::m_dense, and IntVectSet::m_isdense.
|
inline |
same as operator++
|
inline |
initialize this iterator to the first IntVect in its IntVectSet
References IntVectSet::m_dense, and IntVectSet::m_isdense.
|
inline |
same as begin()
Referenced by IVSFAB< T >::define(), MiniIVFAB< Real >::define(), and BaseIVFAB< Real >::define().
|
inline |
move this iterator to after the last IntVect in the set
The iterator will be !ok() afterwards.
References IntVectSet::m_dense, and IntVectSet::m_isdense.
|
private |
|
private |
|
private |