An iterator over the cell volumes. More...
#include <GridHelpers.hpp>
Public Member Functions | |
CpGridCentroidIterator (const Dune::CpGrid &grid, int cell_index) | |
Creates an iterator. More... | |
const Dune::FieldVector < double, 3 > & | dereference () const |
void | increment () |
const Dune::FieldVector < double, 3 > & | elementAt (int n) const |
void | advance (int n) |
void | decrement () |
int | distanceTo (const CpGridCentroidIterator &o) const |
bool | equals (const CpGridCentroidIterator &o) const |
An iterator over the cell volumes.
|
inline |
Creates an iterator.
grid | The grid the iterator belongs to. |
cell_index | The position of the iterator. |