32 template<
class LListBase,
class T>
36 is.fatalCheck(
"operator>>(Istream&, ILList<LListBase, T>&)");
42 "operator>>(Istream&, ILList<LListBase, T>&) : reading first token" 45 if (firstToken.isLabel())
47 label s = firstToken.labelToken();
50 char delimiter = is.readBeginList(
"ILList<LListBase, T>");
54 if (delimiter == token::BEGIN_LIST)
58 this->append(iNew(is).ptr());
62 "operator>>(Istream&, ILList<LListBase, T>&) : " 69 T* tPtr = iNew(is).ptr();
74 "operator>>(Istream&, ILList<LListBase, T>&) : " 80 this->append(
new T(*tPtr));
86 is.readEndList(
"ILList<LListBase, T>");
88 else if (firstToken.isPunctuation())
90 if (firstToken.pToken() != token::BEGIN_LIST)
95 ) <<
"incorrect first token, '(', found " << firstToken.info()
100 is.fatalCheck(
"operator>>(Istream&, ILList<LListBase, T>&)");
105 lastToken.isPunctuation()
106 && lastToken.pToken() == token::END_LIST
110 is.putBack(lastToken);
111 this->append(iNew(is).ptr());
114 is.fatalCheck(
"operator>>(Istream&, ILList<LListBase, T>&)");
120 <<
"incorrect first token, expected <int> or '(', found " 125 is.fatalCheck(
"operator>>(Istream&, ILList<LListBase, T>&)");
129 template<
class LListBase,
class T>
133 this->
read(is, iNew);
137 template<
class LListBase,
class T>
146 template<
class LListBase,
class T>
Template class for intrusive linked lists.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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)...
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
void clear()
Clear the contents of the list.
Istream & operator>>(Istream &, directionInfo &)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
A helper class when constructing from an Istream or dictionary.