35template<
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 "
114 << exit(FatalIOError);
121template<
class LListBase,
class T>
125 this->readIstream(is, inew);
129template<
class LListBase,
class T>
132 this->readIstream(is,
INew<T>());
138template<
class LListBase,
class T>
142 list.readIstream(is,
INew<T>());
Template class for intrusive linked lists.
ILList()=default
Default construct.
void clear()
Clear the contents of the list.
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)....
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
Istream & operator>>(Istream &, directionInfo &)