Go to the documentation of this file.
36 return variables_.found(
name);
46 return variables_[
name];
56 return variables_[
name];
69 variables_.set(
name, std::move(result));
83 return getResult<Type>(isPointVal);
98 return result_.getUniform(1,
true).cref<Type>().first();
115 const int old = stashedTokenId_;
116 stashedTokenId_ = tokenId;
int stashedTokenId() const
Get "look-behind" parsing context (internal bookkeeping)
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
int resetStashedTokenId(int tokenId=0) const
Reset "look-behind" parsing context (mutable operation)
virtual bool hasVariable(const word &name) const
True if named variable exists.
A polymorphic field/result from evaluating an expression.
word name(const complex &c)
Return string representation of complex.
void setSingleValue(const Type &val)
Set single-value uniform result.
void addUniformVariable(const word &name, const T &val)
Add a uniform variable from an outside caller.
Type evaluateUniform(const expressions::exprString &expr, bool isPointVal=false)
Evaluate the expression and return a single value.
virtual exprResult & variable(const word &name)
Non-const access to the named variable (sub-classes only)
int stashedTokenId_
Internal bookkeeping as "look-behind" parsing context.
tmp< Field< Type > > evaluate(const expressions::exprString &expr, bool isPointVal=false)
Evaluate the expression and return the field.