Public Member Functions | Private Attributes

LibGeoDecomp::GridBase< CELL, DIMENSIONS >::ConstIterator Class Reference

Convenice class for reading multiple cells. More...

#include <gridbase.h>

Collaboration diagram for LibGeoDecomp::GridBase< CELL, DIMENSIONS >::ConstIterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ConstIterator (const GridBase< CELL, DIM > *grid, const Coord< DIM > &origin)
const CELL & operator* () const
const CELL * operator-> () const
ConstIteratoroperator>> (CELL &target)
void operator++ ()

Private Attributes

const GridBase< CELL, DIM > * grid
Coord< DIMcursor
CELL cell

Detailed Description

template<typename CELL, int DIMENSIONS>
class LibGeoDecomp::GridBase< CELL, DIMENSIONS >::ConstIterator

Convenice class for reading multiple cells.

Incurs overhead due to copying cells -- probably more often than desired.


Constructor & Destructor Documentation

template<typename CELL, int DIMENSIONS>
LibGeoDecomp::GridBase< CELL, DIMENSIONS >::ConstIterator::ConstIterator ( const GridBase< CELL, DIM > *  grid,
const Coord< DIM > &  origin 
) [inline]

Member Function Documentation

template<typename CELL, int DIMENSIONS>
const CELL& LibGeoDecomp::GridBase< CELL, DIMENSIONS >::ConstIterator::operator* (  )  const [inline]
template<typename CELL, int DIMENSIONS>
void LibGeoDecomp::GridBase< CELL, DIMENSIONS >::ConstIterator::operator++ (  )  [inline]
template<typename CELL, int DIMENSIONS>
const CELL* LibGeoDecomp::GridBase< CELL, DIMENSIONS >::ConstIterator::operator-> (  )  const [inline]
template<typename CELL, int DIMENSIONS>
ConstIterator& LibGeoDecomp::GridBase< CELL, DIMENSIONS >::ConstIterator::operator>> ( CELL &  target  )  [inline]

Member Data Documentation

template<typename CELL, int DIMENSIONS>
CELL LibGeoDecomp::GridBase< CELL, DIMENSIONS >::ConstIterator::cell [private]
template<typename CELL, int DIMENSIONS>
Coord<DIM> LibGeoDecomp::GridBase< CELL, DIMENSIONS >::ConstIterator::cursor [private]
template<typename CELL, int DIMENSIONS>
const GridBase<CELL, DIM>* LibGeoDecomp::GridBase< CELL, DIMENSIONS >::ConstIterator::grid [private]

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