35template<
class LListBase,
class T>
44 const label len = this->size();
48 (len <= 1 || !shortLen)
53 os << len << token::BEGIN_LIST;
57 for (
const T& val : *
this)
59 if (space)
os << token::SPACE;
65 os << token::END_LIST;
70 os <<
nl << len <<
nl << token::BEGIN_LIST <<
nl;
73 for (
const T& val : *
this)
79 os << token::END_LIST;
88template<
class LListBase,
class T>
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Template class for intrusive linked lists.
Ostream & writeList(Ostream &os, const label shortLen=0) const
Write UILList with line-breaks when length exceeds shortLen.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
constexpr char nl
The newline '\n' character (0x0a)