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"
56 if (firstToken.isLabel())
58 label s = firstToken.labelToken();
65 if (delimiter == token::BEGIN_LIST)
89 else if (firstToken.isPunctuation())
91 if (firstToken.pToken() != token::BEGIN_LIST)
96 ) <<
"incorrect first token, '(', found " << firstToken.info()
101 is.
fatalCheck(
" operator>>(Istream&, LList<LListBase, T>&)");
106 lastToken.isPunctuation()
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>
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>&)");
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.
Template class for non-intrusive linked lists.
void append(const T &a)
Add at tail of list.
void clear()
Delete contents of list.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A token holds items read from Istream.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
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.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Istream & operator>>(Istream &is, volFieldValue::Result< Type > &result)
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Istream & operator>>(Istream &, pistonPointEdgeData &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)