dune-localfunctions 2.10
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Dune::LocalInterpolationVirtualImp< DomainType, RangeType, Imp > Class Template Reference

class for wrapping a local interpolation using the virtual interface More...

#include <dune/localfunctions/common/virtualwrappers.hh>

Inheritance diagram for Dune::LocalInterpolationVirtualImp< DomainType, RangeType, Imp >:
Inheritance graph

Public Types

typedef Base::FunctionType FunctionType
 
typedef Base::CoefficientType CoefficientType
 

Public Member Functions

virtual void interpolate (const FunctionType &f, std::vector< CoefficientType > &out) const
 determine coefficients interpolating a given function
 
template<class F , std::enable_if_t< not std::is_base_of< FunctionType, F >::value, int > = 0>
void interpolate (const F &f, std::vector< CoefficientType > &out) const
 determine coefficients interpolating a given function
 
template<class F , class C >
void interpolate (const F &f, std::vector< C > &out) const
 determine coefficients interpolating a given function
 

Protected Member Functions

 LocalInterpolationVirtualImp (const Imp &imp)
 constructor taking an implementation of the Dune::LocalInterpolationVirtualInterface
 

Protected Attributes

const Imp & impl_
 

Detailed Description

template<class DomainType, class RangeType, class Imp>
class Dune::LocalInterpolationVirtualImp< DomainType, RangeType, Imp >

class for wrapping a local interpolation using the virtual interface

Template Parameters
DomainTypedomain type of the function to interpolate
RangeTyperange type of the function to interpolate
ImpLocalInterpolationVirtualInterface implementation

Member Typedef Documentation

◆ CoefficientType

template<class DomainType , class RangeType , class Imp >
typedef Base::CoefficientType Dune::LocalInterpolationVirtualImp< DomainType, RangeType, Imp >::CoefficientType

◆ FunctionType

template<class DomainType , class RangeType , class Imp >
typedef Base::FunctionType Dune::LocalInterpolationVirtualImp< DomainType, RangeType, Imp >::FunctionType

Constructor & Destructor Documentation

◆ LocalInterpolationVirtualImp()

template<class DomainType , class RangeType , class Imp >
Dune::LocalInterpolationVirtualImp< DomainType, RangeType, Imp >::LocalInterpolationVirtualImp ( const Imp &  imp)
inlineprotected

constructor taking an implementation of the Dune::LocalInterpolationVirtualInterface

Member Function Documentation

◆ interpolate() [1/3]

template<class DomainType , class RangeType >
template<class F , class C >
void Dune::LocalInterpolationVirtualInterface< DomainType, RangeType >::interpolate ( const F &  f,
std::vector< C > &  out 
) const
inlineinherited

determine coefficients interpolating a given function

Parameters
[in]fFunction instance used to interpolate.
[out]outResulting coefficients vector.

◆ interpolate() [2/3]

template<class DomainType , class RangeType >
template<class F , std::enable_if_t< not std::is_base_of< FunctionType, F >::value, int > = 0>
void Dune::LocalInterpolationVirtualInterface< DomainType, RangeType >::interpolate ( const F &  f,
std::vector< CoefficientType > &  out 
) const
inlineinherited

determine coefficients interpolating a given function

Parameters
[in]fFunction instance used to interpolate.
[out]outResulting coefficients vector.

◆ interpolate() [3/3]

template<class DomainType , class RangeType , class Imp >
virtual void Dune::LocalInterpolationVirtualImp< DomainType, RangeType, Imp >::interpolate ( const FunctionType f,
std::vector< CoefficientType > &  out 
) const
inlinevirtual

determine coefficients interpolating a given function

This is the pure virtual method taking a VirtualFunction.

Parameters
[in]fFunction instance used to interpolate.
[out]outResulting coefficients vector.

Implements Dune::LocalInterpolationVirtualInterface< DomainType, RangeType >.

Member Data Documentation

◆ impl_

template<class DomainType , class RangeType , class Imp >
const Imp& Dune::LocalInterpolationVirtualImp< DomainType, RangeType, Imp >::impl_
protected

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