41 const label len = this->size();
48 for (label i=0; i < len; ++i)
50 const T* ptr = (*this)[i];
58 <<
"cannot dereference nullptr at index " << i
59 <<
" 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)
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
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.