tfel
Loading...
Searching...
No Matches
tfel::check::Interpolation Struct Referenceabstract
Inheritance diagram for tfel::check::Interpolation:
tfel::check::LinearInterpolation tfel::check::NoInterpolation tfel::check::SplineInterpolation tfel::check::SplineLocalInterpolation

Public Member Functions

 Interpolation (Interpolation &&) noexcept
 Interpolation (const Interpolation &)
Interpolation & operator= (Interpolation &&) noexcept
Interpolation & operator= (const Interpolation &)
virtual void interpolate (const std::vector< double > &, const std::vector< double > &)=0
 stores the values of abscissa and ordinate and does the interpolation
virtual double getValue (const double) const =0
 returns the value at time in parameter
virtual std::string getType () const =0
 returns the type of interpolation
virtual bool isConform () const =0
 check if interpolation is usable or not
virtual std::shared_ptr< Interpolation > clone () const =0
virtual ~Interpolation ()
 destructor

Member Function Documentation

◆ getType()

virtual std::string tfel::check::Interpolation::getType ( ) const
nodiscardpure virtual

returns the type of interpolation

Returns
string : type of interpolation

Implemented in tfel::check::LinearInterpolation, tfel::check::NoInterpolation, tfel::check::SplineInterpolation, and tfel::check::SplineLocalInterpolation.

◆ getValue()

virtual double tfel::check::Interpolation::getValue ( const double ) const
nodiscardpure virtual

returns the value at time in parameter

Parameters
[in]x
Returns
value at time in parameter

Implemented in tfel::check::LinearInterpolation, tfel::check::NoInterpolation, tfel::check::SplineInterpolation, and tfel::check::SplineLocalInterpolation.

◆ interpolate()

virtual void tfel::check::Interpolation::interpolate ( const std::vector< double > & ,
const std::vector< double > &  )
pure virtual

stores the values of abscissa and ordinate and does the interpolation

Parameters
[in]times
[in]values

Implemented in tfel::check::LinearInterpolation, tfel::check::NoInterpolation, tfel::check::SplineInterpolation, and tfel::check::SplineLocalInterpolation.

◆ isConform()

virtual bool tfel::check::Interpolation::isConform ( ) const
nodiscardpure virtual

check if interpolation is usable or not

Returns
true if interpolation type is other than None, otherwise returns false

Implemented in tfel::check::LinearInterpolation, tfel::check::NoInterpolation, tfel::check::SplineInterpolation, and tfel::check::SplineLocalInterpolation.


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