dune-grid 2.9.0
Public Member Functions | List of all members
Dune::VTKWriter< GridView >::CornerIterator Class Reference

Iterate over the elements' corners. More...

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

Inheritance diagram for Dune::VTKWriter< GridView >::CornerIterator:
Inheritance graph

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
 
EntityReference dereference () const
 
int id () const
 Process-local consecutive zero-starting vertex id. More...
 

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

◆ CornerIterator()

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

◆ dereference()

template<class GridView >
EntityReference Dune::VTKWriter< GridView >::CornerIterator::dereference ( ) const
inline

◆ equals()

template<class GridView >
bool Dune::VTKWriter< GridView >::CornerIterator::equals ( const CornerIterator cit) const
inline

◆ id()

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.

◆ increment()

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

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