dune-grid 2.9.0
Public Types | Public Member Functions | List of all members
Dune::VTKWriter< GridView >::VTKLocalFunction::GlobalFunctionWrapper< F > Struct Template Reference

Type erasure implementation for C++ functions, i.e., functions that can be evaluated in global coordinates. More...

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

Inheritance diagram for Dune::VTKWriter< GridView >::VTKLocalFunction::GlobalFunctionWrapper< F >:
Inheritance graph

Public Types

using Function = typename std::decay< F >::type
 

Public Member Functions

template<typename F_ >
 GlobalFunctionWrapper (F_ &&f)
 
virtual void bind (const Entity &e)
 Bind data set to grid entity - must be called before evaluating (i.e. calling write()) More...
 
virtual void unbind ()
 Unbind data set from current grid entity - mostly here for performance and symmetry reasons. More...
 
virtual void write (const Coordinate &pos, Writer &w, std::size_t count) const
 Evaluate data set at local position pos inside the current entity and write result to w. More...
 

Detailed Description

template<class GridView>
template<typename F>
struct Dune::VTKWriter< GridView >::VTKLocalFunction::GlobalFunctionWrapper< F >

Type erasure implementation for C++ functions, i.e., functions that can be evaluated in global coordinates.

Member Typedef Documentation

◆ Function

template<class GridView >
template<typename F >
using Dune::VTKWriter< GridView >::VTKLocalFunction::GlobalFunctionWrapper< F >::Function = typename std::decay<F>::type

Constructor & Destructor Documentation

◆ GlobalFunctionWrapper()

template<class GridView >
template<typename F >
template<typename F_ >
Dune::VTKWriter< GridView >::VTKLocalFunction::GlobalFunctionWrapper< F >::GlobalFunctionWrapper ( F_ &&  f)
inline

Member Function Documentation

◆ bind()

template<class GridView >
template<typename F >
virtual void Dune::VTKWriter< GridView >::VTKLocalFunction::GlobalFunctionWrapper< F >::bind ( const Entity &  e)
inlinevirtual

Bind data set to grid entity - must be called before evaluating (i.e. calling write())

Implements Dune::VTKWriter< GridView >::VTKLocalFunction::FunctionWrapperBase.

◆ unbind()

template<class GridView >
template<typename F >
virtual void Dune::VTKWriter< GridView >::VTKLocalFunction::GlobalFunctionWrapper< F >::unbind ( )
inlinevirtual

Unbind data set from current grid entity - mostly here for performance and symmetry reasons.

Implements Dune::VTKWriter< GridView >::VTKLocalFunction::FunctionWrapperBase.

◆ write()

template<class GridView >
template<typename F >
virtual void Dune::VTKWriter< GridView >::VTKLocalFunction::GlobalFunctionWrapper< F >::write ( const Coordinate &  pos,
Writer w,
std::size_t  count 
) const
inlinevirtual

Evaluate data set at local position pos inside the current entity and write result to w.

The function must write count scalar values as determined by the VTK::FieldInfo.

Implements Dune::VTKWriter< GridView >::VTKLocalFunction::FunctionWrapperBase.


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