Expression representing a number.
More...
#include </home/runner/work/tfel/tfel/include/TFEL/Math/Parser/Number.hxx>
|
|
static std::shared_ptr< Number > | zero () |
| | return an expression associated with zero
|
|
static std::shared_ptr< Number > | one () |
| | return an expression associated with one
|
Expression representing a number.
◆ Number()
| tfel::math::parser::Number::Number |
( |
const std::string & | , |
|
|
const double | ) |
constructor
- Parameters
-
| [in] | s | string representation of the number |
| [in] | v | value |
◆ checkCyclicDependency()
| void tfel::math::parser::Number::checkCyclicDependency |
( |
std::vector< std::string > & | | ) |
const |
|
overridevirtual |
◆ clone()
| std::shared_ptr< Expr > tfel::math::parser::Number::clone |
( |
const std::vector< double > & | | ) |
const |
|
nodiscardoverridevirtual |
◆ createFunctionByChangingParametersIntoVariables()
| std::shared_ptr< Expr > tfel::math::parser::Number::createFunctionByChangingParametersIntoVariables |
( |
const std::vector< double > & | , |
|
|
const std::vector< std::string > & | , |
|
|
const std::map< std::string, std::vector< double >::size_type > & | ) const |
|
nodiscardoverridevirtual |
◆ dependsOnVariable()
| bool tfel::math::parser::Number::dependsOnVariable |
( |
const std::vector< double >::size_type | | ) |
const |
|
nodiscardoverridevirtual |
- Returns
- if the expression depends of the variable associated with the given position
- Parameters
-
Implements tfel::math::parser::Expr.
◆ differentiate()
| std::shared_ptr< Expr > tfel::math::parser::Number::differentiate |
( |
const std::vector< double >::size_type | , |
|
|
const std::vector< double > & | ) const |
|
nodiscardoverridevirtual |
◆ getCxxFormula()
| std::string tfel::math::parser::Number::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] | m | a map used to change the names of the variables |
Implements tfel::math::parser::Expr.
◆ getParametersNames()
| void tfel::math::parser::Number::getParametersNames |
( |
std::set< std::string > & | | ) |
const |
|
overridevirtual |
◆ getValue()
| double tfel::math::parser::Number::getValue |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ isConstant()
| bool tfel::math::parser::Number::isConstant |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ resolveDependencies()
| std::shared_ptr< Expr > tfel::math::parser::Number::resolveDependencies |
( |
const std::vector< double > & | | ) |
const |
|
nodiscardoverridevirtual |
The documentation for this struct was generated from the following file: