32 template<
class LListBase,
class T>
38 "LPtrList<LListBase, T>::read(Istream&, const INew&)"
45 "LPtrList<LListBase, T>::read(Istream&, const INew&) : "
49 if (firstToken.isLabel())
51 label s = firstToken.labelToken();
54 char delimiter = is.readBeginList(
"LPtrList<LListBase, T>");
58 if (delimiter == token::BEGIN_LIST)
62 this->append(iNew(is).ptr());
66 "LPtrList<LListBase, T>::read(Istream&, const INew&) : "
73 T* tPtr = iNew(is).ptr();
78 "LPtrList<LListBase, T>::read(Istream&, const INew&) : "
84 this->append(tPtr->clone().ptr());
90 is.readEndList(
"LPtrList<LListBase, T>");
92 else if (firstToken.isPunctuation())
94 if (firstToken.pToken() != token::BEGIN_LIST)
99 ) <<
"incorrect first token, '(', found " << firstToken.info()
104 is.fatalCheck(
"LPtrList<LListBase, T>::read(Istream&, const INew&)");
109 lastToken.isPunctuation()
110 && lastToken.pToken() == token::END_LIST
114 is.putBack(lastToken);
115 this->append(iNew(is).ptr());
120 "LPtrList<LListBase, T>::read(Istream&, const INew&)"
129 ) <<
"incorrect first token, expected <int> or '(', found "
134 is.fatalCheck(
"LPtrList<LListBase, T>::read(Istream&, const INew&)");
140 template<
class LListBase,
class T>
144 this->
read(is, iNew);
148 template<
class LListBase,
class T>
157 template<
class LListBase,
class T>
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)....
Template class for non-intrusive linked PtrLists.
LPtrList()
Null construct.
void clear()
Clear the contents of the list.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
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.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Istream & operator>>(Istream &, pistonPointEdgeData &)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)