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