100 if (this->size() <= 0)
103 <<
"Trying to pop result from a empty queue" <<
endl 111 popChecked<scalar>(result)
112 || popChecked<vector>(result)
113 || popChecked<tensor>(result)
114 || popChecked<symmTensor>(result)
115 || popChecked<sphericalTensor>(result)
121 <<
"Unsupported value type " << valueType() <<
nl 140 if (valueType() != result.valueType())
143 <<
"Type of pushed value " << result.valueType()
144 <<
" is not the expected type " << valueType() <<
nl 150 pushChecked<scalar>(result)
151 || pushChecked<vector>(result)
152 || pushChecked<tensor>(result)
153 || pushChecked<symmTensor>(result)
154 || pushChecked<sphericalTensor>(result)
160 <<
"Unsupported value type " << valueType() <<
nl 171 void Foam::expressions::exprResultStack::operator=
185 void Foam::expressions::exprResultStack::operator=
187 const exprResult& rhs
203 this->push(exprValue);
defineTypeNameAndDebug(fvExprDriver, 0)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A polymorphic field/result from evaluating an expression.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
exprResult pop()
Pop the last value as an expression result.
Macros for easy insertion into run-time selection tables.
#define DebugInFunction
Report an information message using Foam::Info.
exprResult getUniform(const label size, const bool noWarn, const bool parRun=Pstream::parRun()) const
Construct a uniform field from the current results.
errorManip< error > abort(error &err)
void push(const exprResult &result)
Push an expression result value.
void needsReset(bool val)
Adjusts the internal needsReset value.
addToRunTimeSelectionTable(exprResult, exprResult, dictionary)
virtual void operator=(const exprResult &rhs)
Copy assignment.
exprResultStack()
Default construct.
A stack of polymorphic fields. Can be used to build a list of results one at a time.