tfel
Loading...
Searching...
No Matches
tfel::math::parser::BinaryOperation< Op > Struct Template Referencefinal
Inheritance diagram for tfel::math::parser::BinaryOperation< Op >:
tfel::math::parser::Expr tfel::math::parser::BinaryOperationBase

Public Member Functions

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

Additional Inherited Members

Static Protected Member Functions inherited from tfel::math::parser::BinaryOperationBase
static void throwUnimplementedDifferentiateFunctionException ()

Member Function Documentation

◆ checkCyclicDependency()

template<typename Op>
void tfel::math::parser::BinaryOperation< Op >::checkCyclicDependency ( std::vector< std::string > & ) const
finalvirtual

check if the expression does not lead to a cyclic dependency

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

◆ clone()

template<typename Op>
std::shared_ptr< Expr > tfel::math::parser::BinaryOperation< Op >::clone ( const std::vector< double > & v) const
nodiscardfinalvirtual

◆ createFunctionByChangingParametersIntoVariables()

template<typename Op>
std::shared_ptr< Expr > tfel::math::parser::BinaryOperation< Op >::createFunctionByChangingParametersIntoVariables ( const std::vector< double > & v,
const std::vector< std::string > & params,
const std::map< std::string, std::vector< double >::size_type > & pos ) const
nodiscardfinalvirtual

◆ dependsOnVariable()

template<typename Op>
bool tfel::math::parser::BinaryOperation< Op >::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()

template<typename Op>
std::shared_ptr< Expr > tfel::math::parser::BinaryOperation< Op >::differentiate ( const std::vector< double >::size_type pos,
const std::vector< double > & v ) const
nodiscardfinalvirtual

◆ getCxxFormula()

template<typename Op>
std::string tfel::math::parser::BinaryOperation< Op >::getCxxFormula ( const std::vector< std::string > & ) const
nodiscardfinalvirtual
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()

template<typename Op>
void tfel::math::parser::BinaryOperation< Op >::getParametersNames ( std::set< std::string > & p) const
finalvirtual

◆ getValue()

template<typename Op>
double tfel::math::parser::BinaryOperation< Op >::getValue ( ) const
nodiscardfinalvirtual
Returns
the result of the evaluation of the expression

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

◆ isConstant()

template<typename Op>
bool tfel::math::parser::BinaryOperation< Op >::isConstant ( ) const
nodiscardoverridevirtual

return if the expression is constant

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

◆ resolveDependencies()

template<typename Op>
std::shared_ptr< Expr > tfel::math::parser::BinaryOperation< Op >::resolveDependencies ( const std::vector< double > & v) const
nodiscardfinalvirtual

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