OGS
ParameterLib::FunctionParameter< T >::CurveWrapper Class Reference

Detailed Description

template<typename T>
class ParameterLib::FunctionParameter< T >::CurveWrapper

Definition at line 31 of file FunctionParameter.h.

#include <FunctionParameter.h>

Inheritance diagram for ParameterLib::FunctionParameter< T >::CurveWrapper:
[legend]
Collaboration diagram for ParameterLib::FunctionParameter< T >::CurveWrapper:
[legend]

Public Member Functions

 CurveWrapper (MathLib::PiecewiseLinearInterpolation const &curve)
 
double operator() (double const &t) override
 

Private Attributes

MathLib::PiecewiseLinearInterpolation const & _curve
 

Constructor & Destructor Documentation

◆ CurveWrapper()

template<typename T >
ParameterLib::FunctionParameter< T >::CurveWrapper::CurveWrapper ( MathLib::PiecewiseLinearInterpolation const & curve)
inlineexplicit

Definition at line 34 of file FunctionParameter.h.

36 : exprtk::ifunction<T>(1), _curve(curve)
37 {
38 exprtk::disable_has_side_effects(*this);
39 }
MathLib::PiecewiseLinearInterpolation const & _curve

Member Function Documentation

◆ operator()()

template<typename T >
double ParameterLib::FunctionParameter< T >::CurveWrapper::operator() ( double const & t)
inlineoverride

Definition at line 40 of file FunctionParameter.h.

41 {
42 return _curve.getValue(t);
43 }
double getValue(double pnt_to_interpolate) const
Calculates the interpolation value.

References ParameterLib::FunctionParameter< T >::CurveWrapper::_curve, and MathLib::PiecewiseLinearInterpolation::getValue().

Member Data Documentation

◆ _curve

template<typename T >
MathLib::PiecewiseLinearInterpolation const& ParameterLib::FunctionParameter< T >::CurveWrapper::_curve
private

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