|
IBAMR
IBAMR version 0.19.
|
#include <SideIterator.h>
Public Member Functions | |
| SideIterator () | |
| SideIterator (const hier::Box< DIM > &box, const int axis) | |
| SideIterator (const SideIterator< DIM > &iterator) | |
| SideIterator< DIM > & | operator= (const SideIterator< DIM > &iterator) |
| ~SideIterator () | |
| const SideIndex< DIM > & | operator* () const |
| const SideIndex< DIM > & | operator() () const |
| operator bool () const | |
| operator const void * () const | |
| bool | operator! () const |
| void | operator++ (int) |
| bool | operator== (const SideIterator< DIM > &iterator) const |
| bool | operator!= (const SideIterator< DIM > &iterator) const |
Private Attributes | |
| SideIndex< DIM > | d_index |
| hier::Box< DIM > | d_box |
Class SideIterator<DIM> is an iterator that provides methods for stepping through the index space associated with a side centered box. The indices are enumerated in column-major (e.g., Fortran) order. The iterator should be used as follows:
hier::Box<DIM> box;
...
for (SideIterator<DIM> c(box, axis); c; c++) {
// use index c of the box
}
Note that the side 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::SideIterator< DIM >::SideIterator | ( | ) |
Default constructor for the side iterator. The iterator must be initialized before it can be used to iterate over a box.
| SAMRAI::pdat::SideIterator< DIM >::SideIterator | ( | const hier::Box< DIM > & | box, |
| const int | axis | ||
| ) |
Constructor for the side iterator. The iterator will enumerate the indices in the argument box.
| SAMRAI::pdat::SideIterator< DIM >::SideIterator | ( | const SideIterator< DIM > & | iterator | ) |
Copy constructor for the side iterator
| SAMRAI::pdat::SideIterator< DIM >::~SideIterator | ( | ) |
Destructor for the side iterator.
| SideIterator<DIM>& SAMRAI::pdat::SideIterator< DIM >::operator= | ( | const SideIterator< DIM > & | iterator | ) |
Assignment operator for the side iterator.
| const SideIndex<DIM>& SAMRAI::pdat::SideIterator< DIM >::operator* | ( | ) | const |
Extract the side index corresponding to the iterator position in the box.
| const SideIndex<DIM>& SAMRAI::pdat::SideIterator< DIM >::operator() | ( | ) | const |
Extract the side index corresponding to the iterator position in the box.
| SAMRAI::pdat::SideIterator< DIM >::operator bool | ( | ) | const |
Return true if the iterator points to a valid index within the box.
| SAMRAI::pdat::SideIterator< DIM >::operator const void * | ( | ) | const |
Return a non-NULL if the iterator points to a valid index within the box.
| bool SAMRAI::pdat::SideIterator< DIM >::operator! | ( | ) | const |
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::SideIterator< DIM >::operator++ | ( | int | ) |
Increment the iterator to point to the next index in the box.
| bool SAMRAI::pdat::SideIterator< DIM >::operator== | ( | const SideIterator< DIM > & | iterator | ) | const |
Test two iterators for equality (same index value).
| bool SAMRAI::pdat::SideIterator< DIM >::operator!= | ( | const SideIterator< DIM > & | iterator | ) | const |
Test two iterators for inequality (different index values).
|
private |
|
private |
1.8.17