NeighborIterator Class Reference

#include <NeighborIterator.H>

List of all members.


Detailed Description

An Iterator based on a DisjointBoxLayout object for neighboring boxes.

Public Member Functions

 NeighborIterator ()
 NeighborIterator (const DisjointBoxLayout &dbl)
const LayoutIndexoperator() () 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 DisjointBoxLayoutm_dblPtr
std::vector< std::pair< int,
LayoutIndex >
>::const_iterator 
m_current
std::vector< std::pair< int,
LayoutIndex >
>::const_iterator 
m_end
LayoutIndex m_lindex

Constructor & Destructor Documentation

NeighborIterator::NeighborIterator (  )  [inline]

NeighborIterator::NeighborIterator ( const DisjointBoxLayout dbl  ) 


Member Function Documentation

const LayoutIndex & NeighborIterator::operator() (  )  const [inline]

return the index that this iterator is at

Aborts if the iterator is not ok()

References CH_assert, m_dblPtr, m_lindex, and ok().

Box NeighborIterator::box (  )  const

void NeighborIterator::operator++ (  )  [inline]

move the iterator to the next index in the neighbor list

References m_current, m_end, and m_lindex.

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

Box NeighborIterator::unshift ( const Box a_box  )  const

OK, this one requires a little explanation.

if the *current* box is a periodic image box, then this operation returns the unmapping of a_box.


Member Data Documentation

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++().

Referenced by operator()(), and operator++().


The documentation for this class was generated from the following file:

Generated on Fri Apr 5 04:25:12 2019 for Chombo + EB by  doxygen 1.5.5