#include <IntVectSet.H>
Collaboration diagram for IVSIterator:
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 | |
const IntVect & | iv () const |
same as operator() | |
bool | ok () const |
returns true if this iterator is still in its IntVectSet | |
void | operator++ () |
move iterator to the next IntVect in its IntVectSet | |
void | incr () |
same as operator++ | |
void | begin () |
initialize this iterator to the first IntVect in its IntVectSet | |
void | reset () |
same as begin() | |
void | end () |
move this iterator to after the last IntVect in the set |
IVSIterator iterates over every point (IntVect) in an IntVectSet. It has exactly the same syntax and sematic as BoxIterator. Typical usage:
IntVectSet ivs; ... IVSIterator ivsit (ivs); for (ivsit.begin(); ivsit.ok(); ++ivsit) { IntVect iv = ivsit(); (do operations involving iv) }
|
A default constructed iterator iterates over an empty IntVectSet. It starts in the |
|
Iterates over IntVectSet ivs. There is no canonical ordering. Starts in the |
|
|
|
initialize this iterator to the first IntVect in its IntVectSet
|
|
Modifies this IVSIterator to iterate over the IntVectSet ivs. There is no canonical ordering. Starts in the |
|
move this iterator to after the last IntVect in the set The iterator will be !ok() afterwards. |
|
same as operator++
|
|
same as operator()
|
|
returns true if this iterator is still in its IntVectSet
|
|
returns the IntVect that this iterator is at
|
|
move iterator to the next IntVect in its IntVectSet
|
|
same as begin()
|