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

Iterate over the grid's vertices. More...

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

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

Public Member Functions

 VertexIterator (const GridCellIterator &x, const GridCellIterator &end, const VTK::DataMode &dm, const VertexMapper &vm)
 
void increment ()
 
bool equals (const VertexIterator &cit) const
 
EntityReference dereference () const
 
int localindex () const
 index of vertex within the entity, in Dune-numbering More...
 
FieldVector< DT, n > position () const
 position of vertex inside the entity More...
 

Protected Member Functions

void basicIncrement ()
 

Detailed Description

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

Iterate over the grid's vertices.

This class iterates over the elements, and within the elements over the corners. If the data mode dm is nonconforming, each vertex is visited once for each element where it is a corner (similar to CornerIterator). If dm is conforming each vertex is visited only once globally, for the first element where it is a corner. Contrary to CornerIterator, visit the corners of a given element in Dune-ordering.

Dereferencing the iterator yields the current entity, and the index of the current corner within that entity is returned by the iterators localindex() method. Another useful method on the iterator itself is position() which returns the element-local position of the current corner.

Constructor & Destructor Documentation

◆ VertexIterator()

template<class GridView >
Dune::VTKWriter< GridView >::VertexIterator::VertexIterator ( const GridCellIterator &  x,
const GridCellIterator &  end,
const VTK::DataMode dm,
const VertexMapper vm 
)
inline

Member Function Documentation

◆ basicIncrement()

template<class GridView >
void Dune::VTKWriter< GridView >::VertexIterator::basicIncrement ( )
inlineprotected

◆ dereference()

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

◆ equals()

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

◆ increment()

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

◆ localindex()

template<class GridView >
int Dune::VTKWriter< GridView >::VertexIterator::localindex ( ) const
inline

index of vertex within the entity, in Dune-numbering

◆ position()

template<class GridView >
FieldVector< DT, n > Dune::VTKWriter< GridView >::VertexIterator::position ( ) const
inline

position of vertex inside the entity


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