#include <NeighborIterator.H>
Public Member Functions | |
| NeighborIterator () | |
| NeighborIterator (const DisjointBoxLayout &dbl) | |
| const LayoutIndex & | operator() () const |
| return the index that this iterator is at | |
| Box | box () const |
| void | operator++ () |
| move the iterator to the next index in the neighbor list | |
| bool | ok () const |
| return true if this iterator is still in the neighbor list | |
| void | begin (const DataIndex &a_dataIndex) |
| initialize this iterator to the first index in the neighbor list | |
| Box | unshift (const Box &a_box) const |
| OK, this one requires a little explanation. | |
Private Attributes | |
| const DisjointBoxLayout * | m_dblPtr |
| std::vector< std::pair< int, LayoutIndex > >::const_iterator | m_current |
| std::vector< std::pair< int, LayoutIndex > >::const_iterator | m_end |
| LayoutIndex | m_lindex |
| NeighborIterator::NeighborIterator | ( | ) | [inline] |
| NeighborIterator::NeighborIterator | ( | const DisjointBoxLayout & | dbl | ) |
| const LayoutIndex & NeighborIterator::operator() | ( | ) | const [inline] |
| Box NeighborIterator::box | ( | ) | const |
| void NeighborIterator::operator++ | ( | ) | [inline] |
| bool NeighborIterator::ok | ( | ) | const [inline] |
return true if this iterator is still in the neighbor list
References CH_assert, m_current, m_dblPtr, and m_end.
Referenced by operator()().
| void NeighborIterator::begin | ( | const DataIndex & | a_dataIndex | ) |
initialize this iterator to the first index in the neighbor list
const DisjointBoxLayout* NeighborIterator::m_dblPtr [private] |
Referenced by ok(), and operator()().
std::vector<std::pair<int, LayoutIndex> >::const_iterator NeighborIterator::m_current [private] |
Referenced by ok(), and operator++().
std::vector<std::pair<int, LayoutIndex> >::const_iterator NeighborIterator::m_end [private] |
Referenced by ok(), and operator++().
LayoutIndex NeighborIterator::m_lindex [private] |
Referenced by operator()(), and operator++().
1.5.5