41 const label len = this->size();
44 os <<
nl <<
indent << (trimNull ? this->count() : len) <<
nl
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 <<
")"
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual bool write()
Write the output fields.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
Ostream & incrIndent(Ostream &os)
Increment the indent level.
Ostream & indent(Ostream &os)
Indent stream.
errorManip< error > abort(error &err)
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
constexpr char nl
The newline '\n' character (0x0a)