|
KSeExpr 6.0.0.0
|
#include <ExprMultiExpr.h>
Public Attributes | |
| std::set< DExpression * > | operandExprs |
| std::set< GlobalVal * > | operandVars |
| GlobalVal * | val |
Private Attributes | |
| Expressions & | dContext |
Additional Inherited Members | |
Public Types inherited from KSeExpr::Expression | |
| enum | EvaluationStrategy { UseInterpreter , UseLLVM } |
| Types of evaluation strategies that are available. More... | |
Static Public Attributes inherited from KSeExpr::Expression | |
| static EvaluationStrategy | defaultEvaluationStrategy = chooseDefaultEvaluationStrategy() |
| What evaluation strategy to use by default. | |
| static bool | debugging = getenv("SE_EXPR_DEBUG") != nullptr |
| Whether to debug expressions. | |
Protected Member Functions inherited from KSeExpr::Expression | |
| void | prepIfNeeded () const |
Protected Attributes inherited from KSeExpr::Expression | |
| ExprType | _desiredReturnType |
| ExprVarEnvBuilder | _envBuilder |
| ExprNode * | _parseTree |
Definition at line 19 of file ExprMultiExpr.h.
| KSeExpr::DExpression::DExpression | ( | const std::string & | varName, |
| Expressions & | context, | ||
| const std::string & | e, | ||
| const ExprType & | type = ExprType().FP(3), |
||
| EvaluationStrategy | be = defaultEvaluationStrategy |
||
| ) |
Definition at line 109 of file ExprMultiExpr.cpp.
References KSeExpr::Expressions::AllExprs, KSeExpr::Expressions::AllExternalVars, dContext, KSeExpr::ExprType::dim(), KSeExpr::ExprType::isFP(), KSeExpr::ExprType::isString(), operandExprs, operandVars, KSeExpr::Expression::prepIfNeeded(), and val.
| void KSeExpr::DExpression::eval | ( | ) |
Definition at line 156 of file ExprMultiExpr.cpp.
References KSeExpr::Expression::_desiredReturnType, KSeExpr::Expression::evalFP(), KSeExpr::Expression::evalStr(), KSeExpr::ExprType::isFP(), KSeExpr::ExprType::isString(), and val.
| const std::string & KSeExpr::DExpression::name | ( | ) | const |
Definition at line 127 of file ExprMultiExpr.cpp.
References val, and KSeExpr::GlobalVal::varName.
Referenced by resolveVar().
|
overridevirtual |
override resolveVar to add external variables
Reimplemented from KSeExpr::Expression.
Definition at line 132 of file ExprMultiExpr.cpp.
References KSeExpr::Expression::addError(), name(), operandExprs, operandVars, and KSeExpr::UndeclaredVariable.
|
private |
Definition at line 21 of file ExprMultiExpr.h.
Referenced by DExpression().
|
mutable |
Definition at line 26 of file ExprMultiExpr.h.
Referenced by DExpression(), and resolveVar().
|
mutable |
Definition at line 27 of file ExprMultiExpr.h.
Referenced by DExpression(), and resolveVar().
| GlobalVal* KSeExpr::DExpression::val |
Definition at line 29 of file ExprMultiExpr.h.
Referenced by DExpression(), eval(), and name().