#include <source/patchdata/index/IndexData.h>
Public Member Functions | |
IndexIterator () | |
IndexIterator (IndexData< DIM, TYPE > &data) | |
IndexIterator (const IndexIterator< DIM, TYPE > &iterator) | |
IndexIterator< DIM, TYPE > & | operator= (const IndexIterator< DIM, TYPE > &iterator) |
~IndexIterator () | |
TYPE & | operator * () |
TYPE & | operator() () |
TYPE & | getItem () |
const hier::Index< DIM > & | getIndex () const |
operator bool () const | |
operator const void * () const | |
bool | operator! () const |
void | operator++ (int) |
bool | operator== (const IndexIterator< DIM, TYPE > &iterator) const |
bool | operator!= (const IndexIterator< DIM, TYPE > &iterator) const |
This iterator should be used as follows:
IndexData<DIM,TYPE> data; ... for (IndexData<DIM,TYPE>::Iterator iter(data); iter; iter++ { ... = iter(); }
|
Default constructor for the index list iterator. The iterator must be initialized before it can be used to iterate over an IndexData object. |
|
Constructor for the index list iterator. The iterator will iterate over the irregular index set of the argument data object. |
|
Copy constructor for the index list iterator. |
|
Destructor for the index list iterator. |
|
Assignment operator for the index list iterator. |
|
Return the current item in the irregular index set. |
|
Return the current item in the irregular index set. |
|
Return the current item in the irregular index set. |
|
Return the index of the current item in the irregular index set |
|
Return true if the iterator points to a valid item in the index set. |
|
Return a non-null if the iterator points to a valid item in the index set. |
|
Return whether the iterator points to a valid item in the index set. This operator mimics the !p operation applied to a pointer p. |
|
Increment the iterator to point to the next item in the index set. |
|
Test two iterators for equality (pointing to the same item). |
|
Test two iterators for inequality (pointing to different items). |