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 " bool eof() const
Return true if end of input seen.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t 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)
char readEndList(const char *funcName)
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.
void read(Istream &, const INew &inewt)
Read from Istream using given Istream constructor class.
points setSize(newPointi)
bool read(const char *, int32_t &)
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))
label size() const
Return number of elements in list.
punctuationToken pToken() const
Istream & operator>>(Istream &, directionInfo &)
Non-intrusive singly-linked list.
char readBeginList(const char *funcName)
void append(const T &a)
Add at tail of list.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
InfoProxy< token > info() const
Return info proxy.
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.
bool isPunctuation() const
PtrList()
Null Constructor.
An STL-conforming iterator.
void fatalCheck(const char *operation) const
Check IOstream status for given operation.