tfel
Loading...
Searching...
No Matches
tfel::math::parser::LogicalExpr Struct Referenceabstract

structure representing a logical expression More...

#include </home/runner/work/tfel/tfel/include/TFEL/Math/Parser/LogicalExpr.hxx>

Inheritance diagram for tfel::math::parser::LogicalExpr:
tfel::math::parser::LogicalBinaryOperation< Op > tfel::math::parser::LogicalOperation< Op > tfel::math::parser::NegLogicalExpression

Public Member Functions

virtual bool getValue () const =0
virtual bool isConstant () const =0
 return if the expression is constant
virtual bool dependsOnVariable (const std::vector< double >::size_type) const =0
virtual std::string getCxxFormula (const std::vector< std::string > &) const =0
virtual void checkCyclicDependency (std::vector< std::string > &) const =0
virtual std::shared_ptr< LogicalExpr > resolveDependencies (const std::vector< double > &) const =0
virtual std::shared_ptr< LogicalExpr > clone (const std::vector< double > &) const =0
virtual void getParametersNames (std::set< std::string > &) const =0
virtual std::shared_ptr< LogicalExpr > createFunctionByChangingParametersIntoVariables (const std::vector< double > &, const std::vector< std::string > &, const std::map< std::string, std::vector< double >::size_type > &) const =0

Detailed Description

structure representing a logical expression

Member Function Documentation

◆ dependsOnVariable()

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

Implemented in tfel::math::parser::LogicalBinaryOperation< Op >, tfel::math::parser::LogicalOperation< Op >, and tfel::math::parser::NegLogicalExpression.

◆ getCxxFormula()

virtual std::string tfel::math::parser::LogicalExpr::getCxxFormula ( const std::vector< std::string > & ) const
nodiscardpure virtual
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

Implemented in tfel::math::parser::LogicalBinaryOperation< Op >, tfel::math::parser::LogicalOperation< Op >, and tfel::math::parser::NegLogicalExpression.

◆ getValue()

virtual bool tfel::math::parser::LogicalExpr::getValue ( ) const
nodiscardpure virtual
Returns
the result of the evaluation of the logical expression

Implemented in tfel::math::parser::LogicalBinaryOperation< Op >, tfel::math::parser::LogicalOperation< Op >, and tfel::math::parser::NegLogicalExpression.

◆ isConstant()

virtual bool tfel::math::parser::LogicalExpr::isConstant ( ) const
nodiscardpure virtual

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