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