30bool Foam::expressions::exprResultStack::pushChecked
32 const exprResult& result
43 const Field<T>& resultField = result.cref<
T>();
45 if (!resultField.empty())
47 val = resultField.
first();
50 this->ref<T>().append(val);
57bool Foam::expressions::exprResultStack::popChecked
70 Field<T>& oldField = this->ref<T>();
72 if (!oldField.empty())
74 val = oldField.last();
75 oldField.resize(oldField.size()-1);
78 result.setSingleValue(val);
T & first()
Return the first element of the list.
static constexpr const zero Zero
Global zero (0)