Dune Core Modules (2.4.1)

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

Iterate over the elements' corners. More...

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

Public Types

typedef CornerIterator 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 id () const
 Process-local consecutive zero-starting vertex id. More...
 
Reference operator* () const
 Dereferencing operator.
 
DerivedTypeoperator++ ()
 Preincrement operator.
 
DerivedType operator++ (int)
 Postincrement operator.
 

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.

Member Typedef Documentation

◆ DerivedType

typedef CornerIterator Dune::ForwardIteratorFacade< CornerIterator , 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:188

For an elaborate explanation see the STL Documentation!

Member Function Documentation

◆ 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.

References DUNE_THROW.


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 21, 23:30, 2024)