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