35 template<
class LListBase,
class T>
45 "ILList::readIstream : " 51 const label len = tok.labelToken();
54 const char delimiter = is.readBeginList(
"ILList");
58 if (delimiter == token::BEGIN_LIST)
60 for (label i=0; i<len; ++i)
62 T*
p = inew(is).ptr();
67 "ILList::readIstream : " 74 T*
p = inew(is).ptr();
79 "ILList::readIstream : " 80 "reading the single entry" 83 for (label i=1; i<len; ++i)
85 this->push_back(
new T(*
p));
91 is.readEndList(
"ILList");
93 else if (tok.isPunctuation(token::BEGIN_LIST))
98 while (!tok.isPunctuation(token::END_LIST))
102 T*
p = inew(is).ptr();
112 <<
"incorrect first token, expected <int> or '(', found " 121 template<
class LListBase,
class T>
125 this->readIstream(is, inew);
129 template<
class LListBase,
class T>
132 this->readIstream(is,
INew<T>());
138 template<
class LListBase,
class T>
142 list.readIstream(is, INew<T>());
Template class for intrusive linked lists.
errorManipArg< error, int > exit(error &err, const int errNo=1)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
constexpr char nl
The newline '\n' character (0x0a)
Istream & operator>>(Istream &, directionInfo &)
ILList()=default
Default construct.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
A helper class when constructing from an Istream or dictionary.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...