49 is.
fatalCheck(
"operator>>(Istream&, List<T>&)");
53 is.
fatalCheck(
"operator>>(Istream&, List<T>&) : reading first token");
74 if (is.
format() == IOstream::ASCII || !contiguous<T>())
81 if (delimiter == token::BEGIN_LIST)
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" 129 if (firstToken.
pToken() != token::BEGIN_LIST)
132 <<
"incorrect first token, expected '(', found " 149 <<
"incorrect first token, expected <int> or '(', found " 162 token firstToken(is);
167 if (firstToken.
pToken() != token::BEGIN_LIST)
170 <<
"incorrect first token, expected '(', found "
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.
compound & transferCompoundToken(const Istream &is)
To & dynamicCast(From &r)
Reference type cast template function,.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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.
Template function to specify if the data of a type are contiguous.
List< T > readList(Istream &)
Read a bracket-delimited list, or handle a single value as list of size 1.
A templated class for holding compound tokens.
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))
virtual Istream & read(token &)=0
Return next token from stream.
Istream & operator>>(Istream &, directionInfo &)
streamFormat format() const
Return current stream format.
char readBeginList(const char *funcName)
void fatalCheck(const char *operation) const
Check IOstream status for given operation.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void setSize(const label)
Reset size of List.
T * data()
Return a pointer to the first data element,.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Non-intrusive singly-linked list.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
bool isPunctuation() const