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