An iterator over the centroids of the geometry of the entities. More...
#include <CpGrid.hpp>
Public Types | |
typedef std::vector < cpgrid::Geometry< 3-codim, 3 > >::const_iterator | GeometryIterator |
The type of the iterator over the codim geometries. | |
Public Member Functions | |
CentroidIterator (GeometryIterator iter) | |
Constructs a new iterator from an iterator over the geometries. More... | |
const FieldVector< double, 3 > & | dereference () const |
void | increment () |
const FieldVector< double, 3 > & | elementAt (int n) |
void | advance (int n) |
void | decrement () |
int | distanceTo (const CentroidIterator &o) |
bool | equals (const CentroidIterator &o) const |
An iterator over the centroids of the geometry of the entities.
codim | The co-dimension of the entities. |
|
inline |
Constructs a new iterator from an iterator over the geometries.
iter | The iterator of the geometry objects. |