#include <source/patchdata/array/ArrayDataIterator.h>
Public Member Functions | |
ArrayDataIterator () | |
ArrayDataIterator (const hier::Box< DIM > &box) | |
ArrayDataIterator (const ArrayDataIterator< DIM > &iterator) | |
ArrayDataIterator< DIM > & | operator= (const ArrayDataIterator< DIM > &iterator) |
~ArrayDataIterator () | |
const hier::Index< DIM > & | operator * () const |
const hier::Index< DIM > & | operator() () const |
operator bool () const | |
operator const void * () const | |
bool | operator! () const |
void | operator++ (int) |
bool | operator== (const ArrayDataIterator< DIM > &iterator) const |
bool | operator!= (const ArrayDataIterator< DIM > &iterator) const |
hier::Box<DIM> box; ... for (ArrayDataIterator<DIM> c(box); c; c++) { // use index c of the box }
Note that the array data iterator may not compile to efficient code, depending on your compiler. Many compilers are not smart enough to optimize the looping constructs and indexing operations.
SAMRAI::pdat::ArrayDataIterator< DIM >::ArrayDataIterator | ( | ) | [inline] |
Default constructor for the array data iterator. The iterator must be initialized before it can be used to iterate over a box.
SAMRAI::pdat::ArrayDataIterator< DIM >::ArrayDataIterator | ( | const hier::Box< DIM > & | box | ) | [inline] |
Constructor for the array data iterator. The iterator will enumerate the indices in the argument box.
SAMRAI::pdat::ArrayDataIterator< DIM >::ArrayDataIterator | ( | const ArrayDataIterator< DIM > & | iterator | ) | [inline] |
Copy constructor for the array data iterator
SAMRAI::pdat::ArrayDataIterator< DIM >::~ArrayDataIterator | ( | ) | [inline] |
Destructor for the array data iterator.
ArrayDataIterator< DIM > & SAMRAI::pdat::ArrayDataIterator< DIM >::operator= | ( | const ArrayDataIterator< DIM > & | iterator | ) | [inline] |
Assignment operator for the array data iterator.
const hier::Index< DIM > & SAMRAI::pdat::ArrayDataIterator< DIM >::operator * | ( | ) | const [inline] |
Extract the index corresponding to the iterator position in the box.
const hier::Index< DIM > & SAMRAI::pdat::ArrayDataIterator< DIM >::operator() | ( | ) | const [inline] |
Extract the index corresponding to the iterator position in the box.
SAMRAI::pdat::ArrayDataIterator< DIM >::operator bool | ( | ) | const [inline] |
Return true if the iterator points to a valid index within the box.
SAMRAI::pdat::ArrayDataIterator< DIM >::operator const void * | ( | ) | const [inline] |
Return a non-NULL if the iterator points to a valid index within the box.
bool SAMRAI::pdat::ArrayDataIterator< DIM >::operator! | ( | ) | const [inline] |
Return whether the iterator points to a valid index within the box. This operator mimics the !p operation applied to a pointer p.
void SAMRAI::pdat::ArrayDataIterator< DIM >::operator++ | ( | int | ) | [inline] |
Increment the iterator to point to the next index in the box.
bool SAMRAI::pdat::ArrayDataIterator< DIM >::operator== | ( | const ArrayDataIterator< DIM > & | iterator | ) | const [inline] |
Test two iterators for equality (same index value).
bool SAMRAI::pdat::ArrayDataIterator< DIM >::operator!= | ( | const ArrayDataIterator< DIM > & | iterator | ) | const [inline] |
Test two iterators for inequality (different index values).