#include <source/patchdata/cell/CellIterator.h>
Public Member Functions | |
CellIterator () | |
CellIterator (const hier::Box< DIM > &box) | |
CellIterator (const CellIterator< DIM > &iterator) | |
CellIterator< DIM > & | operator= (const CellIterator< DIM > &iterator) |
~CellIterator () | |
const CellIndex< DIM > & | operator * () const |
const CellIndex< DIM > & | operator() () const |
operator bool () const | |
operator const void * () const | |
bool | operator! () const |
void | operator++ (int) |
bool | operator== (const CellIterator< DIM > &iterator) const |
bool | operator!= (const CellIterator< DIM > &iterator) const |
hier::Box<DIM> box; ... for (CellIterator<DIM> c(box); c; c++) { // use index c of the box }
SAMRAI::pdat::CellIterator< DIM >::CellIterator | ( | ) | [inline] |
Default constructor for the cell iterator. The iterator must be initialized before it can be used to iterate over a box.
SAMRAI::pdat::CellIterator< DIM >::CellIterator | ( | const hier::Box< DIM > & | box | ) | [inline] |
Constructor for the cell iterator. The iterator will enumerate the indices in the argument box.
SAMRAI::pdat::CellIterator< DIM >::CellIterator | ( | const CellIterator< DIM > & | iterator | ) | [inline] |
Copy constructor for the cell iterator
SAMRAI::pdat::CellIterator< DIM >::~CellIterator | ( | ) | [inline] |
Destructor for the cell iterator.
CellIterator< DIM > & SAMRAI::pdat::CellIterator< DIM >::operator= | ( | const CellIterator< DIM > & | iterator | ) | [inline] |
Assignment operator for the cell iterator.
const CellIndex< DIM > & SAMRAI::pdat::CellIterator< DIM >::operator * | ( | ) | const [inline] |
Extract the cell index corresponding to the iterator position in the box.
const CellIndex< DIM > & SAMRAI::pdat::CellIterator< DIM >::operator() | ( | ) | const [inline] |
Extract the cell index corresponding to the iterator position in the box.
SAMRAI::pdat::CellIterator< DIM >::operator bool | ( | ) | const [inline] |
Return true if the iterator points to a valid index within the box.
SAMRAI::pdat::CellIterator< DIM >::operator const void * | ( | ) | const [inline] |
Return a non-NULL if the iterator points to a valid index within the box.
bool SAMRAI::pdat::CellIterator< 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::CellIterator< DIM >::operator++ | ( | int | ) | [inline] |
Increment the iterator to point to the next index in the box.
bool SAMRAI::pdat::CellIterator< DIM >::operator== | ( | const CellIterator< DIM > & | iterator | ) | const [inline] |
Test two iterators for equality (same index value).
bool SAMRAI::pdat::CellIterator< DIM >::operator!= | ( | const CellIterator< DIM > & | iterator | ) | const [inline] |
Test two iterators for inequality (different index values).