dune-vtk 2.12
Loading...
Searching...
No Matches
Dune::Vtk::VTKFunctionWrapper< GridView > Class Template Reference

Type erasure for Legacy VTKFunction. More...

#include <dune/vtk/gridfunctions/vtkfunctionwrapper.hh>

Public Member Functions

 VTKFunctionWrapper (std::shared_ptr< VTKFunction< GridView > const > fct)
 Constructor. Stores a shared pointer to the passed Dune::VTKFunction.
 
void bind (Entity const &entity)
 Stores a pointer to the passed entity.
 
void unbind ()
 Unsets the stored entity pointer.
 
double evaluate (int comp, Domain const &x) const
 Evaluate the Dune::VTKFunction in LocalCoordinates on the stored Entity.
 

Friends

VTKFunctionWrapper localFunction (const VTKFunctionWrapper &self)
 

Detailed Description

template<class GridView>
class Dune::Vtk::VTKFunctionWrapper< GridView >

Type erasure for Legacy VTKFunction.

Constructor & Destructor Documentation

◆ VTKFunctionWrapper()

template<class GridView >
Dune::Vtk::VTKFunctionWrapper< GridView >::VTKFunctionWrapper ( std::shared_ptr< VTKFunction< GridView > const >  fct)
inlineexplicit

Constructor. Stores a shared pointer to the passed Dune::VTKFunction.

Member Function Documentation

◆ bind()

template<class GridView >
void Dune::Vtk::VTKFunctionWrapper< GridView >::bind ( Entity const &  entity)
inline

Stores a pointer to the passed entity.

◆ evaluate()

template<class GridView >
double Dune::Vtk::VTKFunctionWrapper< GridView >::evaluate ( int  comp,
Domain const &  x 
) const
inline

Evaluate the Dune::VTKFunction in LocalCoordinates on the stored Entity.

◆ unbind()

template<class GridView >
void Dune::Vtk::VTKFunctionWrapper< GridView >::unbind ( )
inline

Unsets the stored entity pointer.

Friends And Related Symbol Documentation

◆ localFunction

template<class GridView >
VTKFunctionWrapper localFunction ( const VTKFunctionWrapper< GridView > &  self)
friend

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