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);
void evaluate()
Evaluate boundary conditions.
bool searchFiles() const noexcept
bool cacheReadFields() const noexcept
bool debugParser() const noexcept
Read access to parser debug.
bool searchRegistry() const noexcept
bool debugScanner() const noexcept
Read access to scanner debug.
Type evaluateUniform(const expressions::exprString &expr, bool wantPointData=false)
Evaluate the expression and return a single value.
scalar argValue() const noexcept
Get special-purpose scalar reference argument.
int resetStashedTokenId(int tokenId=0) const noexcept
Reset "look-behind" parsing context (mutable operation)
void setArgument(const scalar val) noexcept
Set special-purpose scalar reference argument.
int stashedTokenId() const noexcept
Get "look-behind" parsing context (internal bookkeeping)
virtual bool hasVariable(const word &name) const
True if named variable exists.
void addUniformVariable(const word &name, const T &val)
Add a uniform variable from an outside caller.
scalar arg1Value_
Special-purpose scalar reference argument.
A polymorphic field/result from evaluating an expression.
void setSingleValue(const Type &val)
Set single-value uniform result.
const word & variable() const
Returns the variable on which the model is based.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.