30 inline void Foam::token::clear()
84 lineNumber_(t.lineNumber_)
148 lineNumber_(lineNumber)
156 lineNumber_(lineNumber)
164 lineNumber_(lineNumber)
172 lineNumber_(lineNumber)
180 lineNumber_(lineNumber)
188 lineNumber_(lineNumber)
196 lineNumber_(lineNumber)
204 lineNumber_(lineNumber)
240 return (type_ ==
ERROR);
256 parseError(
"punctuation character");
263 return (type_ ==
WORD);
394 return (type_ ==
LABEL);
423 parseError(
"floatScalar");
442 parseError(
"doubleScalar");
461 parseError(
"longDoubleScalar");
515 parseError(
"number (label or scalar)");
533 parseError(
"compound");
620 lineNumber_ = t.lineNumber_;
728 if (type_ != t.type_)
A class for handling verbatimStrings, derived from string.
const variable & variableToken() const
doubleScalar doubleScalarToken_
const functionName & functionNameToken() const
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_
static const char *const typeName
const word & wordToken() const
A token holds items read from Istream.
tokenType
Enumeration defining the types of token.
const verbatimString & verbatimStringToken() const
Traits class for primitives.
bool operator==(const token &) const
scalar scalarToken() const
bool isVerbatimString() const
bool unique() const
Return true if the reference count is zero.
functionName * functionNameTokenPtr_
Abstract base class for complex tokens.
static const char *const typeName
static const verbatimString null
An empty verbatimString.
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 functionName is a word starting with '#'.
A class for handling words, derived from string.
float floatScalar
Float precision floating point scalar type.
verbatimString * verbatimStringTokenPtr_
static const functionName null
An empty functionName.
static const char *const typeName
punctuationToken
Standard punctuation tokens.
static const word null
An empty word.
double doubleScalar
Double precision floating point scalar type.
const compound & compoundToken() const
const string & anyStringToken() const
static const string null
An empty string.
static const variable null
An empty variable.
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_
bool isFunctionName() const
variable * variableTokenPtr_
static const char *const typeName
doubleScalar doubleScalarToken() const
A class for handling character strings derived from std::string.
A variable is a word with support for additional characters, in particular '$' and '/'...
bool isPunctuation() const
static const char *const typeName