48 return variables_.found(
name);
58 return variables_[
name];
68 return variables_[
name];
81 variables_.set(
name, std::move(result));
94 return getResult<Type>(wantPointData);
109 return result_.getUniform(1,
true).cref<Type>().first();
117 return stashedTokenId_;
126 int old = stashedTokenId_;
127 stashedTokenId_ = tokenId;
134 return debugScanner_;
146 return (searchCtrl_ & searchControls::SEARCH_REGISTRY);
152 return (searchCtrl_ & searchControls::SEARCH_FILES);
158 return (searchCtrl_ & searchControls::CACHE_READ_FIELDS);
bool searchRegistry() const noexcept
virtual bool hasVariable(const word &name) const
True if named variable exists.
bool debugScanner() const noexcept
Read access to scanner debug.
A polymorphic field/result from evaluating an expression.
scalar arg1Value_
Special-purpose scalar reference argument.
void addUniformVariable(const word &name, const T &val)
Add a uniform variable from an outside caller.
void setArgument(const scalar val) noexcept
Set special-purpose scalar reference argument.
Type evaluateUniform(const expressions::exprString &expr, bool wantPointData=false)
Evaluate the expression and return a single value.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
int resetStashedTokenId(int tokenId=0) const noexcept
Reset "look-behind" parsing context (mutable operation)
scalar argValue() const noexcept
Get special-purpose scalar reference argument.
A class for handling words, derived from Foam::string.
int stashedTokenId() const noexcept
Get "look-behind" parsing context (internal bookkeeping)
bool debugParser() const noexcept
Read access to parser debug.
void setSingleValue(const Type &val)
Set single-value uniform result.
bool cacheReadFields() const noexcept
A class for managing temporary objects.
virtual exprResult & variable(const word &name)
Non-const access to the named variable (sub-classes only)
tmp< Field< Type > > evaluate(const expressions::exprString &expr, bool wantPointData=false)
Evaluate the expression and return the field.
bool searchFiles() const noexcept