dune-vtk 2.8
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Dune::Vtk::LocalFunctionWrapper< GridView, LocalFunction > Class Template Referencefinal

Type erasure for dune-functions LocalFunction interface. More...

#include <dune/vtk/defaultvtkfunction.hh>

Inheritance diagram for Dune::Vtk::LocalFunctionWrapper< GridView, LocalFunction >:
Inheritance graph

Public Member Functions

template<class LocalFct , disableCopyMove< Self, LocalFct > = 0>
 LocalFunctionWrapper (LocalFct &&localFct)
 Constructor. Stores a copy of the passed localFct in a local variable. More...
 
virtual void bind (Entity const &entity) override
 Bind the LocalFunction to the Entity. More...
 
virtual void unbind () override
 Unbind the LocalFunction from the Entity. More...
 
virtual double evaluate (int comp, LocalCoordinate const &xi) const override
 Evaluate the LocalFunction in LocalCoordinates. More...
 

Detailed Description

template<class GridView, class LocalFunction>
class Dune::Vtk::LocalFunctionWrapper< GridView, LocalFunction >

Type erasure for dune-functions LocalFunction interface.

Constructor & Destructor Documentation

◆ LocalFunctionWrapper()

template<class GridView , class LocalFunction >
template<class LocalFct , disableCopyMove< Self, LocalFct > = 0>
Dune::Vtk::LocalFunctionWrapper< GridView, LocalFunction >::LocalFunctionWrapper ( LocalFct &&  localFct)
inlineexplicit

Constructor. Stores a copy of the passed localFct in a local variable.

Member Function Documentation

◆ bind()

template<class GridView , class LocalFunction >
virtual void Dune::Vtk::LocalFunctionWrapper< GridView, LocalFunction >::bind ( Entity const &  entity)
inlineoverridevirtual

Bind the LocalFunction to the Entity.

Implements Dune::Vtk::LocalFunctionInterface< GridView >.

◆ evaluate()

template<class GridView , class LocalFunction >
virtual double Dune::Vtk::LocalFunctionWrapper< GridView, LocalFunction >::evaluate ( int  comp,
LocalCoordinate const &  xi 
) const
inlineoverridevirtual

Evaluate the LocalFunction in LocalCoordinates.

Implements Dune::Vtk::LocalFunctionInterface< GridView >.

◆ unbind()

template<class GridView , class LocalFunction >
virtual void Dune::Vtk::LocalFunctionWrapper< GridView, LocalFunction >::unbind ( )
inlineoverridevirtual

Unbind the LocalFunction from the Entity.

Implements Dune::Vtk::LocalFunctionInterface< GridView >.


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