SeExpr
|
#include <ExprMultiExpr.h>
Public Attributes | |
std::set< DExpression * > | operandExprs |
std::set< GlobalVal * > | operandVars |
GlobalVal * | val |
Private Attributes | |
Expressions & | context |
Additional Inherited Members | |
![]() | |
enum | EvaluationStrategy { UseInterpreter , UseLLVM } |
Types of evaluation strategies that are available. More... | |
![]() | |
static EvaluationStrategy | defaultEvaluationStrategy = chooseDefaultEvaluationStrategy() |
What evaluation strategy to use by default. | |
static bool | debugging = getenv("SE_EXPR_DEBUG") != 0 |
Whether to debug expressions. | |
![]() | |
void | prepIfNeeded () const |
![]() | |
ExprType | _desiredReturnType |
ExprVarEnvBuilder | _envBuilder |
ExprNode * | _parseTree |
Definition at line 30 of file ExprMultiExpr.h.
SeExpr2::DExpression::DExpression | ( | const std::string & | varName, |
Expressions & | context, | ||
const std::string & | e, | ||
const ExprType & | type = ExprType().FP(3) , |
||
EvaluationStrategy | be = defaultEvaluationStrategy |
||
) |
Definition at line 89 of file ExprMultiExpr.cpp.
References SeExpr2::Expressions::AllExprs, SeExpr2::Expressions::AllExternalVars, be, context, SeExpr2::ExprType::dim(), SeExpr2::ExprType::isFP(), SeExpr2::ExprType::isString(), operandExprs, operandVars, SeExpr2::Expression::prepIfNeeded(), and val.
void SeExpr2::DExpression::eval | ( | ) |
Definition at line 132 of file ExprMultiExpr.cpp.
References SeExpr2::Expression::_desiredReturnType, SeExpr2::Expression::evalFP(), SeExpr2::Expression::evalStr(), SeExpr2::ExprType::isFP(), SeExpr2::ExprType::isString(), and val.
const std::string & SeExpr2::DExpression::name | ( | ) | const |
Definition at line 109 of file ExprMultiExpr.cpp.
References val, and SeExpr2::GlobalVal::varName.
Referenced by resolveVar().
|
virtual |
override resolveVar to add external variables
Reimplemented from SeExpr2::Expression.
Definition at line 111 of file ExprMultiExpr.cpp.
References SeExpr2::Expression::addError(), name(), operandExprs, and operandVars.
|
private |
Definition at line 31 of file ExprMultiExpr.h.
Referenced by DExpression().
|
mutable |
Definition at line 40 of file ExprMultiExpr.h.
Referenced by DExpression(), and resolveVar().
|
mutable |
Definition at line 41 of file ExprMultiExpr.h.
Referenced by DExpression(), and resolveVar().
GlobalVal* SeExpr2::DExpression::val |
Definition at line 43 of file ExprMultiExpr.h.
Referenced by DExpression(), eval(), and name().