tfel
Loading...
Searching...
No Matches
tfel::math::parser::EvaluatorFunctionBase Struct Reference

#include </home/runner/work/tfel/tfel/include/TFEL/Math/Parser/EvaluatorFunction.hxx>

Inheritance diagram for tfel::math::parser::EvaluatorFunctionBase:
tfel::math::parser::Expr tfel::math::parser::EvaluatorFunction1PNV< N > tfel::math::parser::EvaluatorFunction1UPNV< N > tfel::math::parser::EvaluatorFunction1VBase tfel::math::parser::EvaluatorFunction2PNV< N > tfel::math::parser::EvaluatorFunction2UPNV< N > tfel::math::parser::EvaluatorFunction2VBase tfel::math::parser::EvaluatorFunctionNV< N > tfel::math::parser::EvaluatorFunction1P1V tfel::math::parser::EvaluatorFunction2P1V tfel::math::parser::EvaluatorFunction1P2V tfel::math::parser::EvaluatorFunction2P2V

Public Member Functions

 EvaluatorFunctionBase ()
 constructor
std::string getCxxFormula (const std::vector< std::string > &) const override
std::shared_ptr< Expr > differentiate (const std::vector< double >::size_type, const std::vector< double > &) const override
 ~EvaluatorFunctionBase () override
 destructor
Public Member Functions inherited from tfel::math::parser::Expr
virtual bool dependsOnVariable (const std::vector< double >::size_type) const =0
virtual bool isConstant () const =0
 return if the expression is constant
virtual double getValue () const =0
virtual void checkCyclicDependency (std::vector< std::string > &) const =0
 check if the expression does not lead to a cyclic dependency
virtual std::shared_ptr< Expr > resolveDependencies (const std::vector< double > &) const =0
virtual std::shared_ptr< Expr > clone (const std::vector< double > &) const =0
virtual void getParametersNames (std::set< std::string > &) const =0
virtual std::shared_ptr< Expr > createFunctionByChangingParametersIntoVariables (const std::vector< double > &, const std::vector< std::string > &, const std::map< std::string, std::vector< double >::size_type > &) const =0
virtual ~Expr ()
 destructor

Detailed Description

a base class which offers a default implementation of the differentiate method

Member Function Documentation

◆ differentiate()

std::shared_ptr< Expr > tfel::math::parser::EvaluatorFunctionBase::differentiate ( const std::vector< double >::size_type ,
const std::vector< double > &  ) const
nodiscardoverridevirtual

◆ getCxxFormula()

std::string tfel::math::parser::EvaluatorFunctionBase::getCxxFormula ( const std::vector< std::string > & ) const
nodiscardoverridevirtual
Returns
a string representation of the evaluator suitable to be integrated in a C++ code.
Parameters
[in]ma map used to change the names of the variables

Implements tfel::math::parser::Expr.


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