Go to the documentation of this file.
33 template<
class LListBase,
class T>
39 "LPtrList<LListBase, T>::read(Istream&, const INew&)"
46 "LPtrList<LListBase, T>::read(Istream&, const INew&) : "
59 if (delimiter == token::BEGIN_LIST)
63 this->append(iNew(is).ptr());
67 "LPtrList<LListBase, T>::read(Istream&, const INew&) : "
74 T* tPtr = iNew(is).ptr();
79 "LPtrList<LListBase, T>::read(Istream&, const INew&) : "
85 this->append(tPtr->clone().ptr());
95 if (firstToken.
pToken() != token::BEGIN_LIST)
100 ) <<
"incorrect first token, '(', found " << firstToken.
info()
105 is.
fatalCheck(
"LPtrList<LListBase, T>::read(Istream&, const INew&)");
111 && lastToken.
pToken() == token::END_LIST
116 this->append(iNew(is).ptr());
121 "LPtrList<LListBase, T>::read(Istream&, const INew&)"
130 ) <<
"incorrect first token, expected <int> or '(', found "
135 is.
fatalCheck(
"LPtrList<LListBase, T>::read(Istream&, const INew&)");
141 template<
class LListBase,
class T>
145 this->
read(is, iNew);
149 template<
class LListBase,
class T>
158 template<
class LListBase,
class T>
162 L.
read(is, INew<T>());
170 template<
class LListBase,
class T>
174 os <<
nl << lst.size();
177 os <<
nl << token::BEGIN_LIST <<
nl;
182 typename LPtrList<LListBase, T>::const_iterator iter = lst.begin();
191 os << token::END_LIST;
194 os.check(
"Ostream& operator<<(Ostream&, const LPtrList<LListBase, T>&)");
void fatalCheck(const char *operation) const
Check IOstream status for given operation.
char readBeginList(const char *funcName)
bool read(const char *, int32_t &)
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
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 &)
Read from Istream using given Istream constructor class.
LPtrList()
Null construct.
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
virtual Istream & read(token &)=0
Return next token from stream.