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)
96 ) <<
"incorrect first token, '(', found " << firstToken.
info()
101 is.
fatalCheck(
" operator>>(Istream&, LList<LListBase, T>&)");
107 && lastToken.
pToken() == token::END_LIST
117 is.
fatalCheck(
" operator>>(Istream&, LList<LListBase, T>&)");
123 <<
"incorrect first token, expected <int> or '(', found " 129 is.
fatalCheck(
" operator>>(Istream&, LList<LListBase,>&)");
137 template<
class LListBase,
class T>
138 Foam::Ostream& Foam::operator<<(Ostream& os, const LList<LListBase, T>& lst)
141 os <<
nl << lst.size();
144 os <<
nl << token::BEGIN_LIST <<
nl;
147 for (
const T& val : lst)
153 os << token::END_LIST;
156 os.check(
"Ostream& operator<<(Ostream&, const LList<LListBase, T>&)");
punctuationToken pToken() const
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)
InfoProxy< token > info() const
Return info proxy.
Template class for non-intrusive linked lists.
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.
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))
Istream & operator>>(Istream &, directionInfo &)
char readBeginList(const char *funcName)
void fatalCheck(const char *operation) const
Check IOstream status for given operation.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void clear()
Delete contents of list.
void append(const T &a)
Add at tail of list.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
bool isPunctuation() const