#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 }
SAMRAI::hier::BoxIterator< DIM >::BoxIterator | ( | ) | [inline] |
Default constructor for the box iterator. The iterator must be initialized before it can be used to iterate over a box.
SAMRAI::hier::BoxIterator< DIM >::BoxIterator | ( | const Box< DIM > & | box | ) | [inline] |
Constructor for the box iterator. The iterator will enumerate the indices in the argument box.
SAMRAI::hier::BoxIterator< DIM >::BoxIterator | ( | const BoxIterator< DIM > & | iterator | ) | [inline] |
Copy constructor for the box iterator.
SAMRAI::hier::BoxIterator< DIM >::~BoxIterator | ( | ) | [inline] |
Destructor for the box iterator.
BoxIterator< DIM > & SAMRAI::hier::BoxIterator< DIM >::operator= | ( | const BoxIterator< DIM > & | iterator | ) | [inline] |
Assignment operator for the box iterator.
void SAMRAI::hier::BoxIterator< DIM >::initialize | ( | const Box< DIM > & | box | ) | [inline] |
Initializer for the box iterator.
The iterator will enumerate the indices in the box.
const Index< DIM > & SAMRAI::hier::BoxIterator< DIM >::operator * | ( | ) | const [inline] |
Return the current index in the box. This operation is undefined if the iterator is past the last Index in the box.
const Index< DIM > & SAMRAI::hier::BoxIterator< DIM >::operator() | ( | ) | const [inline] |
Return the current index in the box. This operation is undefined if the iterator is past the last Index in the box.
SAMRAI::hier::BoxIterator< DIM >::operator bool | ( | ) | const [inline] |
Return true if the iterator points to a valid index in the box.
SAMRAI::hier::BoxIterator< DIM >::operator const void * | ( | ) | const [inline] |
Return a non-NULL if the iterator points to a valid index in the box.
bool SAMRAI::hier::BoxIterator< DIM >::operator! | ( | ) | const [inline] |
Return whether the iterator points to a valid item in the box. This operator mimics the !p operation applied to a pointer p.
void SAMRAI::hier::BoxIterator< DIM >::operator++ | ( | int | ) | [inline] |
Increment the iterator to point to the next index in the box.
bool SAMRAI::hier::BoxIterator< DIM >::operator== | ( | const BoxIterator< DIM > & | iterator | ) | const [inline] |
Test two iterators for equality (same index value).
bool SAMRAI::hier::BoxIterator< DIM >::operator!= | ( | const BoxIterator< DIM > & | iterator | ) | const [inline] |
Test two iterators for inequality (different index values).