Go to the documentation of this file.
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 "
191 os <<
nl << L.size() <<
nl << token::BEGIN_LIST;
200 os <<
nl << token::END_LIST <<
nl;
203 os.check(
"Ostream& operator<<(Ostream&, const PtrList&)");
points setSize(newPointi)
void fatalCheck(const char *operation) const
Check IOstream status for given operation.
void append(const T &a)
Add at tail of list.
Non-intrusive singly-linked list.
#define forAll(list, i)
Loop across all elements in list.
bool eof() const
Return true if end of input seen.
char readBeginList(const char *funcName)
bool read(const char *, int32_t &)
PtrList()
Null Constructor.
char readEndList(const char *funcName)
A token holds items read from Istream.
A helper class when constructing from an Istream or dictionary.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
InfoProxy< token > info() const
Return info proxy.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Ostream & operator<<(Ostream &, const edgeMesh &)
punctuationToken pToken() const
void clear()
Clear the PtrList, i.e. set size to zero deleting all the.
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))
errorManipArg< error, int > exit(error &err, const int errNo=1)
void read(Istream &, const INew &inewt)
Read from Istream using given Istream constructor class.
void putBack(const token &)
Put back token.
Istream & operator>>(Istream &, edgeMesh &)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool isPunctuation() const