30 inline void Foam::token::clear()
72 lineNumber_(t.lineNumber_)
125 lineNumber_(lineNumber)
133 lineNumber_(lineNumber)
141 lineNumber_(lineNumber)
149 lineNumber_(lineNumber)
157 lineNumber_(lineNumber)
165 lineNumber_(lineNumber)
173 lineNumber_(lineNumber)
209 return (type_ ==
ERROR);
225 parseError(
"punctuation character");
232 return (type_ ==
WORD);
273 return (type_ ==
LABEL);
302 parseError(
"floatScalar");
321 parseError(
"doubleScalar");
340 parseError(
"longDoubleScalar");
394 parseError(
"number (label or scalar)");
412 parseError(
"compound");
488 lineNumber_ = t.lineNumber_;
560 if (type_ != t.type_)
doubleScalar doubleScalarToken_
punctuationToken pToken() const
bool operator!=(const token &) 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.
bool isLongDoubleScalar() const
longDoubleScalar * longDoubleScalarTokenPtr_
compound * compoundTokenPtr_
const word & wordToken() const
A token holds items read from Istream.
tokenType
Enumeration defining the types of token.
Traits class for primitives.
bool operator==(const token &) const
scalar scalarToken() const
bool unique() const
Return true if the reference count is zero.
Abstract base class for complex tokens.
static const char *const typeName
void operator=(const 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))
floatScalar floatScalarToken() const
A class for handling words, derived from string.
float floatScalar
Float precision floating point scalar type.
punctuationToken
Standard punctuation tokens.
static const word null
An empty word.
double doubleScalar
Double precision floating point scalar type.
const compound & compoundToken() const
static const string null
An empty string.
bool isFloatScalar() const
bool isDoubleScalar() const
const string & stringToken() const
longDoubleScalar longDoubleScalarToken() const
long double longDoubleScalar
Lang double precision floating point scalar type.
bool equal(const T &s1, const T &s2)
floatScalar floatScalarToken_
punctuationToken punctuationToken_
static const char *const typeName
doubleScalar doubleScalarToken() const
A class for handling character strings derived from std::string.
bool isPunctuation() const