Go to the documentation of this file.
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)
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>());
Istream & operator>>(Istream &, directionInfo &)
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
A helper class when constructing from an Istream or dictionary.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void clear()
Clear the contents of the list.
Template class for intrusive linked lists.
ILList()=default
Default construct.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.