11 #ifndef _NEIGHBORITERATOR_H_ 12 #define _NEIGHBORITERATOR_H_ 17 #include "NamespaceHeader.H" 45 inline bool ok()
const;
86 #include "NamespaceFooter.H" #define CH_assert(cond)
Definition: CHArray.H:37
std::vector< std::pair< int, LayoutIndex > >::const_iterator m_current
Definition: NeighborIterator.H:60
const DisjointBoxLayout * m_dblPtr
Definition: NeighborIterator.H:59
const LayoutIndex & operator()() const
return the index that this iterator is at
Definition: NeighborIterator.H:79
Box unshift(const Box &a_box) const
OK, this one requires a little explanation.
LayoutIndex m_lindex
Definition: NeighborIterator.H:61
A BoxLayout that has a concept of disjointedness.
Definition: DisjointBoxLayout.H:31
NeighborIterator()
Definition: NeighborIterator.H:27
bool ok() const
return true if this iterator is still in the neighbor list
Definition: NeighborIterator.H:65
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
Definition: DataIndex.H:112
void begin(const DataIndex &a_dataIndex)
initialize this iterator to the first index in the neighbor list
An index for LayoutIterator.
Definition: DataIndex.H:30
std::vector< std::pair< int, LayoutIndex > >::const_iterator m_end
Definition: NeighborIterator.H:60
An Iterator based on a DisjointBoxLayout object for neighboring boxes.
Definition: NeighborIterator.H:23
void operator++()
move the iterator to the next index in the neighbor list
Definition: NeighborIterator.H:71