30bool Foam::expressions::exprResultStack::pushChecked
32 const exprResult& result
43 const Field<T>& resultField = result.cref<
T>();
45 if (!resultField.empty())
47 val = resultField.front();
50 this->
ref<T>().push_back(val);
57bool Foam::expressions::exprResultStack::popChecked
70 Field<T>& oldField = this->
ref<T>();
72 if (!oldField.empty())
74 val = oldField.back();
78 result.setSingleValue(val);
A polymorphic field/result from evaluating an expression.
bool isType() const
True if valueType corresponds to the given Type.
Field< Type > & ref()
Return non-const reference to the field.
static constexpr const zero Zero
Global zero (0).
bool isType(const U &obj)
Check if typeid of the object and Type are identical.