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>());