dune-grid  2.2.0
Public Member Functions
Dune::VTKWriter< GridView >::CornerIterator Class Reference

Iterate over the elements' corners. More...

#include <dune/grid/io/file/vtk/vtkwriter.hh>

List of all members.

Public Member Functions

 CornerIterator (const GridCellIterator &x, const GridCellIterator &end, const VTK::DataMode &dm, const VertexMapper &vm, const std::vector< int > &num)
void increment ()
bool equals (const CornerIterator &cit) const
const Entity & dereference () const
int id () const
 Process-local consecutive zero-starting vertex id.

Detailed Description

template<class GridView>
class Dune::VTKWriter< GridView >::CornerIterator

Iterate over the elements' corners.

This class iterates over the elements, and within the elements over the corners. Each vertex in the grid can be a corner in multiple elements, and is visited once for each element it is associated with. This class differs from VertexIterator in that it visits the corners of a given element in VTK-ordering, and that it always visits a given vertex once for each element where that vertex is a corner in, independent of the data mode dm.

Dereferencing the iterator yields the current entity. Another useful method on the iterator itself is id(), which returns the number of the current corners associated vertex, in the numbering given by the iteration order of VertexIterator.


Constructor & Destructor Documentation

template<class GridView >
Dune::VTKWriter< GridView >::CornerIterator::CornerIterator ( const GridCellIterator &  x,
const GridCellIterator &  end,
const VTK::DataMode dm,
const VertexMapper vm,
const std::vector< int > &  num 
) [inline]

Member Function Documentation

template<class GridView >
const Entity& Dune::VTKWriter< GridView >::CornerIterator::dereference ( ) const [inline]
template<class GridView >
bool Dune::VTKWriter< GridView >::CornerIterator::equals ( const CornerIterator cit) const [inline]
template<class GridView >
int Dune::VTKWriter< GridView >::CornerIterator::id ( ) const [inline]

Process-local consecutive zero-starting vertex id.

This method returns the number of this corners associated vertex, in the numbering given by the iteration order of VertexIterator.

References Dune::VTK::conforming, Dune::MultipleCodimMultipleGeomTypeMapper< GV, Layout >::map(), Dune::VTK::nonconforming, and Dune::VTK::renumber().

template<class GridView >
void Dune::VTKWriter< GridView >::CornerIterator::increment ( ) [inline]

References Dune::InteriorEntity.


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