48 offsets_.readList(is);
62 offsets_.writeList(
os, shortLen);
63 values_.writeList(
os, shortLen);
82 const label nRows = mat.
length();
86 for (label i = 0; i < nRows; ++i)
A packed storage of objects of type <T> using an offset table for access.
Ostream & writeMatrix(Ostream &os, const label shortLen=0) const
Write CompactListList as a formatted matrix of values (ASCII).
label length() const noexcept
The primary size (the number of rows/sublists).
const SubList< T > localList(const label i) const
Return const access to sub-list (no subscript checking).
Ostream & writeList(Ostream &os, const label shortLen=0) const
Write CompactListList as offsets/values pair.
Istream & readList(Istream &is)
Read CompactListList as offsets/values pair from Istream, discards current list contents.
CompactListList() noexcept=default
Default construct.
@ ASCII
"ascii" (normal default)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
@ BEGIN_LIST
Begin list [isseparator].
@ END_LIST
End list [isseparator].
OBJstream os(runTime.globalPath()/outputName)
constexpr char nl
The newline '\n' character (0x0a).