43 maxLen = this->
size();
53 const auto* iter = this->
cdata();
56 for (label i = 0; i < len; ++i)
60 for (label i = len; i < maxLen; ++i)
80 const label len = this->size();
83 const label netLen = (trimNull ? this->count_nonnull() : len);
98 for (label i=0; i < len; ++i)
100 const T* ptr = (*this)[i];
108 <<
"cannot dereference nullptr at index " << i
109 <<
" in range [0," << len <<
")"
110 << abort(FatalError);
Ostream & write(Ostream &os, const bool trimNull=false) const
Write output, optionally silently trimming nullptrs.
Ostream & printAddresses(Ostream &os, label maxLen=-1) const
Write pointer values to Ostream (debugging only).
label count_nonnull() const noexcept
The number of non-nullptr entries in the list.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const T * cdata() const noexcept
Return pointer to the underlying array serving as data storage.
void size(const label n)
Older name for setAddressableSize.
@ BEGIN_LIST
Begin list [isseparator].
@ END_LIST
End list [isseparator].
#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.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
constexpr char nl
The newline '\n' character (0x0a).