#include <source/patchdata/edge/EdgeIterator.h>
Public Member Functions | |
EdgeIterator () | |
EdgeIterator (const hier::Box< DIM > &box, const int axis) | |
EdgeIterator (const EdgeIterator< DIM > &iterator) | |
EdgeIterator< DIM > & | operator= (const EdgeIterator< DIM > &iterator) |
~EdgeIterator () | |
const EdgeIndex< DIM > & | operator * () const |
const EdgeIndex< DIM > & | operator() () const |
operator bool () const | |
operator const void * () const | |
bool | operator! () const |
void | operator++ (int) |
bool | operator== (const EdgeIterator< DIM > &iterator) const |
bool | operator!= (const EdgeIterator< DIM > &iterator) const |
hier::Box<DIM> box; ... for (EdgeIterator<DIM> c(box, axis); c; c++) { // use index c of the box }
|
Default constructor for the edge iterator. The iterator must be initialized before it can be used to iterate over a box. |
|
Constructor for the edge iterator. The iterator will enumerate the indices in the argument box. |
|
Copy constructor for the edge iterator |
|
Destructor for the edge iterator. |
|
Assignment operator for the edge iterator. |
|
Extract the edge index corresponding to the iterator position in the box. |
|
Extract the edge index corresponding to the iterator position in the box. |
|
Return true if the iterator points to a valid index within the box. |
|
Return a non-NULL if the iterator points to a valid index within the box. |
|
Return whether the iterator points to a valid index within the box. This operator mimics the !p operation applied to a pointer p. |
|
Increment the iterator to point to the next index in the box. |
|
Test two iterators for equality (same index value). |
|
Test two iterators for inequality (different index values). |