Dune Core Modules (2.5.0)

Dune::VTKWriter< GridView >::VertexIterator Class Reference

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

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

Public Types

typedef VertexIterator DerivedType
 The type of derived iterator. More...
 
typedef const Entity Value
 The type of value accessed through the iterator.
 
typedef const Entity * Pointer
 The pointer to the Value.
 
typedef int DifferenceType
 The type of the difference between two positions.
 
typedef EntityReference Reference
 The type of the reference to the values accessed.
 

Public Member Functions

int localindex () const
 index of vertex within the entity, in Dune-numbering
 
const FieldVector< DT, n > & position () const
 position of vertex inside the entity
 
Reference operator* () const
 Dereferencing operator.
 
DerivedTypeoperator++ ()
 Preincrement operator.
 
DerivedType operator++ (int)
 Postincrement operator.
 

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.

Member Typedef Documentation

◆ DerivedType

typedef VertexIterator Dune::ForwardIteratorFacade< VertexIterator , const Entity , EntityReference , int >::DerivedType
inherited

The type of derived iterator.

The iterator has to define following functions have to be present:

// Access the value referred to.
Reference dereference() const;
// Compare for equality with iterator j
bool equals(j);
// position the iterator at the next element.
void increment()
// check for equality with other iterator
bool equals(other)
EntityReference Reference
The type of the reference to the values accessed.
Definition: iteratorfacades.hh:191

For an elaborate explanation see the STL Documentation!


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 23, 23:29, 2024)