#include <LayoutIterator.H>
Inheritance diagram for LayoutIterator:


Public Methods | |
| LayoutIterator () | |
| a null constructed LayoutIterator will return false on ok() | |
| LayoutIterator (const BoxLayout &a_layout) | |
| ~LayoutIterator () | |
| const LayoutIndex & | operator() () const |
| return the index that this iterator is at | |
| LayoutIndex | i () const |
| return a copy of the index that this iterator is at | |
| void | operator++ () |
| move the iterator to the next Box in the layout | |
| void | incr () |
| move the iterator to the next Box in the layout | |
| bool | ok () const |
| return true if this iterator is still in its Layout | |
| void | begin () |
| initialize this iterator to the first Box in its Layout | |
| void | reset () |
| same as begin() | |
| void | end () |
| move this iterator to after the last Box in the layout | |
Protected Methods | |
| LayoutIterator (const BoxLayout &a_boxlayout, const int *a_layoutID) | |
Protected Attributes | |
| BoxLayout | m_layout |
| unsigned int | m_index |
| LayoutIndex | m_current |
Friends | |
| class | BoxLayout |
An Iterator based on a BoxLayout object. It does not support a dereferencing operation(1), since it is intended to work with all of BoxLayouts, DisjointBoxLayouts, BoxLayoutDatas LevelData's, and any object that is built on top of a BoxLayout object. LayoutIterator accesses the data in a BoxLayout-based object in a NON-data-parallel manner (i.e. every processor iterates through all the Boxes in the BoxLayout). This differs from the DataIterator class.
BoxLayout-based objects can act as the Factory for the LayoutIterator.
(1) STL-speak. not critical for comprehension, but can help people familiar with STL iterators and expecting similar behaviour.
|
|
a null constructed LayoutIterator will return false on ok()
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
initialize this iterator to the first Box in its Layout
|
|
|
move this iterator to after the last Box in the layout The iterator will be !ok() afterwards. |
|
|
return a copy of the index that this iterator is at
Reimplemented in DataIterator. |
|
|
move the iterator to the next Box in the layout
|
|
|
return true if this iterator is still in its Layout
|
|
|
return the index that this iterator is at
Reimplemented in DataIterator. |
|
|
move the iterator to the next Box in the layout
|
|
|
same as begin()
|
|
|
Reimplemented in DataIterator. |
|
|
|
|
|
|
|
|
|
1.2.16