32 template<
class LListBase,
class T>
41 template<
class LListBase,
class T>
47 is.
fatalCheck(
" operator>>(Istream&, LList<LListBase, T>&)");
53 " operator>>(Istream&, LList<LListBase, T>&) : reading first token" 65 if (delimiter == token::BEGIN_LIST)
91 if (firstToken.
pToken() != token::BEGIN_LIST)
95 " operator>>(Istream&, LList<LListBase, T>&)",
97 ) <<
"incorrect first token, '(', found " << firstToken.
info()
102 is.
fatalCheck(
" operator>>(Istream&, LList<LListBase, T>&)");
108 && lastToken.
pToken() == token::END_LIST
118 is.
fatalCheck(
" operator>>(Istream&, LList<LListBase, T>&)");
124 <<
"incorrect first token, expected <int> or '(', found " 130 is.
fatalCheck(
" operator>>(Istream&, LList<LListBase,>&)");
138 template<
class LListBase,
class T>
139 Foam::Ostream& Foam::operator<<(Ostream& os, const LList<LListBase, T>& lst)
142 os <<
nl << lst.size();
145 os <<
nl << token::BEGIN_LIST <<
nl;
159 os << token::END_LIST;
162 os.check(
"Ostream& operator<<(Ostream&, const LList<LListBase, 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 ))
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
char readBeginList(const char *funcName)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool isPunctuation() const
errorManipArg< error, int > exit(error &err, const int errNo=1)
An STL-conforming const_iterator.
Template class for non-intrusive linked lists.
void putBack(const token &)
Put back token.
InfoProxy< token > info() const
Return info proxy.
char readEndList(const char *funcName)
void fatalCheck(const char *operation) const
Check IOstream status for given operation.
A token holds items read from Istream.
void append(const T &a)
Add at tail of list.
Istream & operator>>(Istream &, edgeMesh &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void clear()
Delete contents of list.
punctuationToken pToken() const
#define FatalIOErrorIn(functionName, ios)
Report an error message using Foam::FatalIOError.