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)
inline

Definition at line 34 of file FunctionParameter.h.

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

Member Function Documentation

◆ operator()()

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

Definition at line 39 of file FunctionParameter.h.

40  {
41  return _curve.getValue(t);
42  }
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: