38 is.
fatalCheck(
"PtrList<T>::read(Istream&, const INew&)");
44 "PtrList<T>::read(Istream&, const INew&) : " 60 if (delimiter == token::BEGIN_LIST)
68 "PtrList<T>::read(Istream&, const INew&) : " 75 T* tPtr = inewt(is).ptr();
80 "PtrList<T>::read(Istream&, const INew&) : " 81 "reading the single entry" 86 set(i, tPtr->clone());
96 if (firstToken.
pToken() != token::BEGIN_LIST)
101 ) <<
"incorrect first token, '(', found " << firstToken.
info()
112 && lastToken.
pToken() == token::END_LIST
123 ) <<
"Premature EOF after reading " << lastToken.
info()
127 sllPtrs.
append(inewt(is).ptr());
137 iter != sllPtrs.
end();
149 ) <<
"incorrect first token, expected <int> or '(', found "
#define forAll(list, i)
Loop across all elements in list.
punctuationToken pToken() const
errorManipArg< error, int > exit(error &err, const int errNo=1)
char readEndList(const char *funcName)
InfoProxy< token > info() const
Return info proxy.
Template class for non-intrusive linked lists.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A token holds items read from Istream.
void putBack(const token &)
Put back token.
An STL-conforming iterator.
void read(Istream &, const INew &inewt)
Read from Istream using given Istream constructor class.
points setSize(newPointi)
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))
Istream & operator>>(Istream &, directionInfo &)
char readBeginList(const char *funcName)
void fatalCheck(const char *operation) const
Check IOstream status for given operation.
bool eof() const
Return true if end of input seen.
void append(const T &a)
Add at tail of list.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
A helper class when constructing from an Istream or dictionary.
void clear()
Clear the PtrList, i.e. set size to zero deleting all the.
PtrList()
Null Constructor.
Non-intrusive singly-linked list.
bool isPunctuation() const