41 const label len = this->size();
44 const label netLen = (trimNull ? this->count_nonnull() : len);
50 << token::BEGIN_LIST << token::END_LIST <<
nl;
59 for (label i=0; i < len; ++i)
61 const T* ptr = (*this)[i];
69 <<
"cannot dereference nullptr at index " << i
70 <<
" in range [0," << len <<
")" Ostream & indent(Ostream &os)
Indent stream.
Ostream & write(Ostream &os, const bool trimNull=false) const
Write output, optionally silently trimming nullptrs.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & incrIndent(Ostream &os)
Increment the indent level.