dune-grid  2.4.1
Public Types | Public Member Functions | Static Public Attributes | List of all members
Dune::VTK::PointIterator< CellIterator, IS > Class Template Reference

iterate over the points of some corner range More...

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

Inheritance diagram for Dune::VTK::PointIterator< CellIterator, IS >:
Inheritance graph

Public Types

typedef VTK::Corner< typename
remove_const< typename
std::iterator_traits
< CellIterator >::value_type >
::type > 
Corner
 
typedef PointIterator
< CellIterator, IS > 
DerivedType
 
typedef const Corner Value
 
typedef ValueReference
 
typedef std::iterator_traits
< CellIterator >
::difference_type 
DifferenceType
 

Public Member Functions

Reference dereference () const
 
bool isDereferencable () const
 
bool equals (const DerivedType &other) const
 
void increment ()
 
 PointIterator (const CellIterator &cellit, const CellIterator &cellend, const IS &is_)
 construct a CornerIterator More...
 
 PointIterator (const CellIterator &cellend_)
 construct a CornerIterator More...
 

Static Public Attributes

static const unsigned mydim
 

Detailed Description

template<typename CellIterator, typename IS>
class Dune::VTK::PointIterator< CellIterator, IS >

iterate over the points of some corner range

This iterator essentially filters the output from CornerIterator to visit each point only once.

Template Parameters
CellIteratorType of the iterators over cells. The usual codim0 EntityIterators should work here.
ISType of the indexset.

The IndexSet must provide methods and member types:

The requirements are crafted in such a way the the indexsets provided by the grid should fullfill them as long as the cells are codim=0 Entities.

Member Typedef Documentation

template<typename CellIterator , typename IS >
typedef VTK::Corner<typename remove_const<typename std::iterator_traits< CellIterator>::value_type>::type> Dune::VTK::PointIterator< CellIterator, IS >::Corner
template<typename CellIterator , typename IS >
typedef PointIterator<CellIterator, IS> Dune::VTK::PointIterator< CellIterator, IS >::DerivedType
template<typename CellIterator , typename IS >
typedef std::iterator_traits<CellIterator>::difference_type Dune::VTK::PointIterator< CellIterator, IS >::DifferenceType
template<typename CellIterator , typename IS >
typedef Value& Dune::VTK::PointIterator< CellIterator, IS >::Reference
template<typename CellIterator , typename IS >
typedef const Corner Dune::VTK::PointIterator< CellIterator, IS >::Value

Constructor & Destructor Documentation

template<typename CellIterator , typename IS >
Dune::VTK::PointIterator< CellIterator, IS >::PointIterator ( const CellIterator &  cellit,
const CellIterator &  cellend,
const IS &  is_ 
)
inline

construct a CornerIterator

Parameters
cellitThe begin iterator of the undelying range.
cellendThe end iterator of the underlying range.
is_A reference to the indexset to use.
template<typename CellIterator , typename IS >
Dune::VTK::PointIterator< CellIterator, IS >::PointIterator ( const CellIterator &  cellend_)
inline

construct a CornerIterator

This constructs a passed-the-end iterator value.

Member Function Documentation

template<typename CellIterator , typename IS >
Reference Dune::VTK::PointIterator< CellIterator, IS >::dereference ( ) const
inline
template<typename CellIterator , typename IS >
bool Dune::VTK::PointIterator< CellIterator, IS >::equals ( const DerivedType other) const
inline
template<typename CellIterator , typename IS >
void Dune::VTK::PointIterator< CellIterator, IS >::increment ( )
inline
template<typename CellIterator , typename IS >
bool Dune::VTK::PointIterator< CellIterator, IS >::isDereferencable ( ) const
inline

Member Data Documentation

template<typename CellIterator , typename IS >
const unsigned Dune::VTK::PointIterator< CellIterator, IS >::mydim
static
Initial value:
= std::iterator_traits<CellIterator>::
value_type::mydimension

Referenced by Dune::VTK::PointIterator< CellIterator, IS >::increment().


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