#include <source/hierarchy/boxes/Box.h>
Public Member Functions | |
BoxIterator () | |
BoxIterator (const Box< DIM > &box) | |
BoxIterator (const BoxIterator< DIM > &iterator) | |
BoxIterator< DIM > & | operator= (const BoxIterator< DIM > &iterator) |
~BoxIterator () | |
void | initialize (const Box< DIM > &box) |
Initializer for the box iterator. | |
const Index< DIM > & | operator * () const |
const Index< DIM > & | operator() () const |
operator bool () const | |
operator const void * () const | |
bool | operator! () const |
void | operator++ (int) |
bool | operator== (const BoxIterator< DIM > &iterator) const |
bool | operator!= (const BoxIterator< DIM > &iterator) const |
Box<DIM> box; ... for (Box<DIM>::Iterator b(box); b; b++) { // use index b of the box }
|
Default constructor for the box iterator. The iterator must be initialized before it can be used to iterate over a box.
|
|
Constructor for the box iterator. The iterator will enumerate the indices in the argument box. |
|
Copy constructor for the box iterator. |
|
Destructor for the box iterator. |
|
Assignment operator for the box iterator. |
|
Initializer for the box iterator. The iterator will enumerate the indices in the box. |
|
Return the current index in the box. This operation is undefined if the iterator is past the last Index in the box. |
|
Return the current index in the box. This operation is undefined if the iterator is past the last Index in the box. |
|
Return true if the iterator points to a valid index in the box. |
|
Return a non-NULL if the iterator points to a valid index in the box. |
|
Return whether the iterator points to a valid item in 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). |