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

base class for unary functions More...

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

Inheritance diagram for tfel::math::parser::Function:
tfel::math::parser::Expr tfel::math::parser::GeneralPowerFunction tfel::math::parser::PowerFunction< N > tfel::math::parser::StandardFunction< f >

Public Member Functions

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

Protected Member Functions

 Function (const std::shared_ptr< Expr >) noexcept
 constructor

Protected Attributes

const std::shared_ptr< Expr > expr
 argument

Detailed Description

base class for unary functions

Constructor & Destructor Documentation

◆ Function()

tfel::math::parser::Function::Function ( const std::shared_ptr< Expr > )
explicitprotectednoexcept

constructor

Parameters
[in]eexpression representing the argument of the function

Member Function Documentation

◆ checkCyclicDependency()

void tfel::math::parser::Function::checkCyclicDependency ( std::vector< std::string > & ) const
overridevirtual

check if the expression does not lead to a cyclic dependency

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

◆ dependsOnVariable()

bool tfel::math::parser::Function::dependsOnVariable ( const std::vector< double >::size_type ) const
nodiscardoverridevirtual
Returns
if the expression depends of the variable associated with the given position
Parameters
[in]pposition

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

◆ getParametersNames()

void tfel::math::parser::Function::getParametersNames ( std::set< std::string > & ) const
overridevirtual

◆ isConstant()

bool tfel::math::parser::Function::isConstant ( ) const
nodiscardoverridevirtual

return if the expression is constant

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


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