Go to the documentation of this file.
36 template<
class T,
class Addr>
45 const label len = list.
size();
53 os << len << token::BEGIN_BLOCK << list[0] << token::END_BLOCK;
57 (len <= 1 || !shortLen)
70 os << len << token::BEGIN_LIST;
73 for (label i=0; i < len; ++i)
75 if (i) os << token::SPACE;
80 os << token::END_LIST;
85 os <<
nl << len <<
nl << token::BEGIN_LIST <<
nl;
88 for (label i=0; i < len; ++i)
94 os << token::END_LIST <<
nl;
100 os <<
nl << len <<
nl;
109 for (label i=0; i < len; ++i)
113 reinterpret_cast<const char*
>(&(list[i])),
streamFormat format() const noexcept
Get the current stream format.
virtual bool beginRawWrite(std::streamsize count)=0
Emit begin marker for low-level raw binary output.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
virtual bool endRawWrite()=0
Emit end marker for low-level raw binary output.
bool uniform() const
True if all entries have identical values, and list is non-empty.
Base for lists with indirect addressing, templated on the list contents type and the addressing type....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeList(Ostream &os, const label shortLen=0) const
Write List, with line-breaks in ASCII when length exceeds shortLen.
virtual Ostream & writeRaw(const char *data, std::streamsize count)=0
Low-level raw binary output.
label size() const
The number of elements in the list.
A template class to specify that a data type can be considered as being contiguous in memory.