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()
111 lastToken.isPunctuation()
112 && lastToken.pToken() == token::END_LIST
123 ) <<
"Premature EOF after reading " << lastToken.info()
127 sllPtrs.append(inewt(is).ptr());
136 typename SLList<T*>::iterator iter = sllPtrs.begin();
137 iter != sllPtrs.end();
149 ) <<
"incorrect first token, expected <int> or '(', found "
Non-intrusive singly-linked list.
#define forAll(list, i)
Loop across all elements in list.
A helper class when constructing from an Istream or dictionary.
void fatalCheck(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
char readEndList(const char *funcName)
char readBeginList(const char *funcName)
void putBack(const token &)
Put back token.
bool eof() const
Return true if end of input seen.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
void read(Istream &, const INew &inewt)
Read from Istream using given Istream constructor class.
PtrList()
Null Constructor.
void clear()
Clear the PtrList, i.e. set size to zero deleting all the.
A token holds items read from Istream.
bool isPunctuation() const
punctuationToken pToken() const
InfoProxy< token > info() const
Return info proxy.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), lagrangian::cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
errorManipArg< error, int > exit(error &err, const int errNo=1)
Istream & operator>>(Istream &, pointEdgeDist &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void T(GeometricField< Type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type, GeoMesh, PrimitiveField2 > &gf1)
points setSize(newPointi)