49 is.
fatalCheck(
"operator>>(Istream&, List<T>&)");
53 is.
fatalCheck(
"operator>>(Istream&, List<T>&) : reading first token");
55 if (firstToken.isCompound())
61 firstToken.transferCompoundToken(is)
65 else if (firstToken.isLabel())
67 label s = firstToken.labelToken();
89 "operator>>(Istream&, List<T>&) : reading entry"
100 "operator>>(Istream&, List<T>&) : "
101 "reading the single entry"
118 is.
read(
reinterpret_cast<char*
>(L.
data()),
s*
sizeof(
T));
122 "operator>>(Istream&, List<T>&) : reading the binary block"
127 else if (firstToken.isPunctuation())
132 <<
"incorrect first token, expected '(', found "
149 <<
"incorrect first token, expected <int> or '(', found "
162 token firstToken(is);
163 is.putBack(firstToken);
165 if (firstToken.isPunctuation())
170 <<
"incorrect first token, expected '(', found "
Non-intrusive singly-linked list.
streamFormat format() const
Return current stream format.
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)
virtual Istream & read(token &)=0
Return next token from stream.
char readBeginList(const char *funcName)
void putBack(const token &)
Put back token.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
friend Istream & operator>>(Istream &, List< T > &)
Read List from Istream, discarding contents of existing List.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
void setSize(const label)
Reset size of List.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
T * data()
Return a pointer to the first data element,.
A templated class for holding compound tokens.
A token holds items read from Istream.
Template function to specify if the data of a type are contiguous.
#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))
errorManipArg< error, int > exit(error &err, const int errNo=1)
List< T > readList(Istream &)
Read a bracket-delimited list, or handle a single value as list of size 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.
To & dynamicCast(From &r)
Reference type cast template function,.
Istream & operator>>(Istream &, pistonPointEdgeData &)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)