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

Public Member Functions

 Variable (const std::vector< double > &, const std::vector< double >::size_type)
 constructor
Variable & operator= (const Variable &)=delete
Variable & operator= (Variable &&)=delete
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 > clone (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 > resolveDependencies (const std::vector< double > &) const override
 ~Variable () override
 destructor
Public Member Functions inherited from tfel::math::parser::Expr
virtual ~Expr ()
 destructor

Constructor & Destructor Documentation

◆ Variable()

tfel::math::parser::Variable::Variable ( const std::vector< double > & ,
const std::vector< double >::size_type  )

constructor

Parameters
[in]v_buffer containing the values of all the variables
[in]p_position of the variable in the buffer

Member Function Documentation

◆ checkCyclicDependency()

void tfel::math::parser::Variable::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::Variable::clone ( const std::vector< double > & ) const
nodiscardoverridevirtual

◆ createFunctionByChangingParametersIntoVariables()

std::shared_ptr< Expr > tfel::math::parser::Variable::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::Variable::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.

◆ differentiate()

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

◆ getCxxFormula()

std::string tfel::math::parser::Variable::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.

◆ getParametersNames()

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

◆ getValue()

double tfel::math::parser::Variable::getValue ( ) const
nodiscardoverridevirtual
Returns
the result of the evaluation of the expression

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

◆ isConstant()

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

return if the expression is constant

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

◆ resolveDependencies()

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

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