tfel
Loading...
Searching...
No Matches
tfel::math::parser::LogicalBinaryOperation< Op > Struct Template Referencefinal
Inheritance diagram for tfel::math::parser::LogicalBinaryOperation< Op >:
tfel::math::parser::LogicalExpr

Public Member Functions

 LogicalBinaryOperation (LogicalExprPtr, LogicalExprPtr) noexcept
LogicalBinaryOperation & operator= (const LogicalBinaryOperation &)=delete
LogicalBinaryOperation & operator= (LogicalBinaryOperation &&)=delete
bool isConstant () const override
 return if the expression is constant
bool dependsOnVariable (const std::vector< double >::size_type) const override
bool getValue () const override
std::string getCxxFormula (const std::vector< std::string > &) const override
void checkCyclicDependency (std::vector< std::string > &) const override
LogicalExprPtr resolveDependencies (const std::vector< double > &) const override
LogicalExprPtr clone (const std::vector< double > &) const override
void getParametersNames (std::set< std::string > &) const override
LogicalExprPtr createFunctionByChangingParametersIntoVariables (const std::vector< double > &, const std::vector< std::string > &, const std::map< std::string, std::vector< double >::size_type > &) const override

Member Function Documentation

◆ checkCyclicDependency()

template<typename Op>
void tfel::math::parser::LogicalBinaryOperation< Op >::checkCyclicDependency ( std::vector< std::string > & vars) const
overridevirtual

◆ clone()

template<typename Op>
std::shared_ptr< LogicalExpr > tfel::math::parser::LogicalBinaryOperation< Op >::clone ( const std::vector< double > & v) const
nodiscardoverridevirtual

◆ createFunctionByChangingParametersIntoVariables()

template<typename Op>
std::shared_ptr< LogicalExpr > tfel::math::parser::LogicalBinaryOperation< Op >::createFunctionByChangingParametersIntoVariables ( const std::vector< double > & v,
const std::vector< std::string > & p,
const std::map< std::string, std::vector< double >::size_type > & pos ) const
nodiscardoverridevirtual

◆ dependsOnVariable()

template<typename Op>
bool tfel::math::parser::LogicalBinaryOperation< 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::LogicalExpr.

◆ getCxxFormula()

template<typename Op>
std::string tfel::math::parser::LogicalBinaryOperation< Op >::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::LogicalExpr.

◆ getParametersNames()

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

◆ getValue()

template<typename Op>
bool tfel::math::parser::LogicalBinaryOperation< Op >::getValue ( ) const
nodiscardoverridevirtual
Returns
the result of the evaluation of the logical expression

Implements tfel::math::parser::LogicalExpr.

◆ isConstant()

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

return if the expression is constant

Implements tfel::math::parser::LogicalExpr.

◆ resolveDependencies()

template<typename Op>
std::shared_ptr< LogicalExpr > tfel::math::parser::LogicalBinaryOperation< Op >::resolveDependencies ( const std::vector< double > & v) const
nodiscardoverridevirtual

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