#include <source/patchdata/face/FaceIterator.h>
Public Member Functions | |
| FaceIterator () | |
| FaceIterator (const hier::Box< DIM > &box, const int axis) | |
| FaceIterator (const FaceIterator< DIM > &iterator) | |
| FaceIterator< DIM > & | operator= (const FaceIterator< DIM > &iterator) |
| ~FaceIterator () | |
| const FaceIndex< DIM > & | operator * () const |
| const FaceIndex< DIM > & | operator() () const |
| operator bool () const | |
| operator const void * () const | |
| bool | operator! () const |
| void | operator++ (int) |
| bool | operator== (const FaceIterator< DIM > &iterator) const |
| bool | operator!= (const FaceIterator< DIM > &iterator) const |
hier::Box<DIM> box;
...
for (FaceIterator<DIM> c(box, axis); c; c++) {
// use index c of the box
}
|
|||||||||
|
Default constructor for the face iterator. The iterator must be initialized before it can be used to iterate over a box. |
|
||||||||||||||||
|
Constructor for the face iterator. The iterator will enumerate the indices in the argument box. |
|
||||||||||
|
Copy constructor for the face iterator |
|
|||||||||
|
Destructor for the face iterator. |
|
||||||||||
|
Assignment operator for the face iterator. |
|
|||||||||
|
Extract the face index corresponding to the iterator position in the box. |
|
|||||||||
|
Extract the face 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). |
1.4.2