dune-pdelab  2.0.0
Public Types | Public Member Functions | List of all members
Dune::PDELab::VTKBoundaryGridFunctionAdapter< Func > Class Template Reference

wrap a BoundaryGridFunction for the VTKWriter More...

#include <dune/pdelab/experimental/common/vtkexport.hh>

Public Types

typedef
VTK::SkeletonFunctionTraits
< typename
Func::Traits::GridViewType,
typename
Func::Traits::RangeFieldType > 
Traits
 export Traits More...
 

Public Member Functions

 VTKBoundaryGridFunctionAdapter (const Func &func_)
 create an adapter object More...
 
unsigned dimRange () const
 return number of components More...
 
void evaluate (const typename Traits::Cell &c, const typename Traits::Domain &xl, typename Traits::Range &result) const
 evaluate function More...
 

Detailed Description

template<typename Func>
class Dune::PDELab::VTKBoundaryGridFunctionAdapter< Func >

wrap a BoundaryGridFunction for the VTKWriter

Template Parameters
FuncType of the BoundaryGridFunction to wrap.
Note
There is one catch here: PDELabs BoundaryGridFunction is specified to receive an IntersectionGeometry object instead of an Intersection. The class IntersectionGeometry has mostly the some information as the class Intersection, there is however the method intersectionIndex() which returns the number of the Intersection within the Element in iteration order. This is however a piece of information which we do not have available in this wrapper class and which would be quite costly to obtain.
So instead of the correct intersectionIndex we simply provide UINT_MAX here. If anything actually uses that information, it will hopefully break the hard way.

Member Typedef Documentation

template<typename Func >
typedef VTK::SkeletonFunctionTraits< typename Func::Traits::GridViewType, typename Func::Traits::RangeFieldType> Dune::PDELab::VTKBoundaryGridFunctionAdapter< Func >::Traits

export Traits

Constructor & Destructor Documentation

template<typename Func >
Dune::PDELab::VTKBoundaryGridFunctionAdapter< Func >::VTKBoundaryGridFunctionAdapter ( const Func &  func_)
inline

create an adapter object

Parameters
func_Reference to the function object to wrap. This reference will be stored internally and should be valid for as long as this wrapper may be evaluated.

Member Function Documentation

template<typename Func >
unsigned Dune::PDELab::VTKBoundaryGridFunctionAdapter< Func >::dimRange ( ) const
inline

return number of components

template<typename Func >
void Dune::PDELab::VTKBoundaryGridFunctionAdapter< Func >::evaluate ( const typename Traits::Cell &  c,
const typename Traits::Domain &  xl,
typename Traits::Range &  result 
) const
inline

evaluate function

References ig.


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