44 const std::string&
name()
const;
74 void getErrors(std::vector<std::string>& errors)
const;
std::set< DExpression * > operandExprs
EvaluationStrategy
Types of evaluation strategies that are available.
</pre >< h2 > Evaluating expressions</h2 > Evaluating an expression is pretty easy But before we can do that we need to make an instance< pre > GrapherExpr expr("x+x^2")
VariableHandle addExternalVariable(const std::string &variableName, ExprType seTy)
void setVariable(VariableHandle handle, double *values, unsigned dim)
std::set< GlobalVal * > AllExternalVars
std::pair< ExprHandle, std::vector< DExpression * > > ExprEvalHandle
ExprHandle addExpression(const std::string &varName, ExprType seTy, const std::string &expr)
std::set< GlobalVal * >::iterator VariableHandle
std::set< DExpression * > exprToEval
std::set< DExpression * > exprEvaled
void setLoopVariable(VariableSetHandle handle, double *values, unsigned dim)
For any rgb or hsl value(except for negative s values)
const Context & context() const
void setVariable(VariableHandle handle, double value)
const char * evalStr(ExprEvalHandle eeh)
void setLoopVariable(VariableSetHandle handle, double value)
std::set< DExpression * >::iterator ExprHandle
ExprEvalHandle getExprEvalHandle(ExprHandle eh)
DExpression(const std::string &varName, Expressions &context, const std::string &e, const ExprType &type=ExprType().FP(3), EvaluationStrategy be=defaultEvaluationStrategy)
< b ></b >< br >< b ></b ></td >< td > vector constructor< br > vector component access n must be
const std::string & name() const
void getErrors(std::vector< std::string > &errors) const
std::set< GlobalVal * >::iterator VariableSetHandle
std::set< GlobalVal * > operandVars
VariableSetHandle getLoopVarSetHandle(VariableHandle vh)
static EvaluationStrategy defaultEvaluationStrategy
What evaluation strategy to use by default.
abstract class for implementing variable references
const std::vector< double > & evalFP(ExprEvalHandle eeh)
ExprVarRef * resolveVar(const std::string &name) const
std::set< DExpression * > AllExprs