36 inline void token::clear()
75 lineNumber_(t.lineNumber_)
123 lineNumber_(lineNumber)
131 lineNumber_(lineNumber)
139 lineNumber_(lineNumber)
147 lineNumber_(lineNumber)
155 lineNumber_(lineNumber)
163 lineNumber_(lineNumber)
200 return (type_ ==
ERROR);
216 parseError(
"punctuation character");
223 return (type_ ==
WORD);
257 parseError(
"string");
264 return (type_ ==
LABEL);
293 parseError(
"floatScalar");
312 parseError(
"doubleScalar");
335 parseError(
"scalar");
357 parseError(
"number (label or scalar)");
375 parseError(
"compound");
446 lineNumber_ = t.lineNumber_;
511 if (type_ != t.type_)
doubleScalar doubleScalarToken() const
bool isFloatScalar() const
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 ))
punctuationToken punctuationToken_
float floatScalar
Float precision floating point scalar type.
floatScalar floatScalarToken() const
doubleScalar doubleScalarToken_
A class for handling words, derived from string.
void operator=(const token &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling character strings derived from std::string.
bool isPunctuation() const
const word & wordToken() const
const compound & compoundToken() const
static const string null
An empty string.
bool operator!=(const token &) const
punctuationToken
Standard punctuation tokens.
bool isDoubleScalar() const
floatScalar floatScalarToken_
bool operator==(const token &) const
A token holds items read from Istream.
bool okToDelete() const
Return true if the reference count is zero.
const string & stringToken() const
tokenType
Enumeration defining the types of token.
Abstract base class for complex tokens.
double doubleScalar
Double precision floating point scalar type.
compound * compoundTokenPtr_
punctuationToken pToken() const
scalar scalarToken() const
bool equal(const T &s1, const T &s2)
static const word null
An empty word.