tfel
Loading...
Searching...
No Matches
tfel::math::parser::ExternalFunctionExpr2 Struct Referencefinal
Inheritance diagram for tfel::math::parser::ExternalFunctionExpr2:
tfel::math::parser::Expr

Public Member Functions

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

Member Function Documentation

◆ checkCyclicDependency()

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

check if the expression does not lead to a cyclic dependency

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

◆ clone()

std::shared_ptr< Expr > tfel::math::parser::ExternalFunctionExpr2::clone ( const std::vector< double > & ) const
overridevirtual

◆ createFunctionByChangingParametersIntoVariables()

std::shared_ptr< Expr > tfel::math::parser::ExternalFunctionExpr2::createFunctionByChangingParametersIntoVariables ( const std::vector< double > & ,
const std::vector< std::string > & ,
const std::map< std::string, std::vector< double >::size_type > &  ) const
overridevirtual

◆ dependsOnVariable()

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

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

◆ differentiate()

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

◆ getCxxFormula()

std::string tfel::math::parser::ExternalFunctionExpr2::getCxxFormula ( const std::vector< std::string > & ) const
overridevirtual
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.

◆ getParametersNames()

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

◆ getValue()

double tfel::math::parser::ExternalFunctionExpr2::getValue ( ) const
overridevirtual
Returns
the result of the evaluation of the expression

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

◆ isConstant()

bool tfel::math::parser::ExternalFunctionExpr2::isConstant ( ) const
overridevirtual

return if the expression is constant

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

◆ resolveDependencies()

std::shared_ptr< Expr > tfel::math::parser::ExternalFunctionExpr2::resolveDependencies ( const std::vector< double > & ) const
overridevirtual

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