Go to the documentation of this file.
75 lineNumber_(t.lineNumber_)
122 punctuationToken_(
p),
123 lineNumber_(lineNumber)
130 wordTokenPtr_(new
word(
w)),
131 lineNumber_(lineNumber)
138 stringTokenPtr_(new
string(
s)),
139 lineNumber_(lineNumber)
147 lineNumber_(lineNumber)
154 floatScalarToken_(
s),
155 lineNumber_(lineNumber)
161 type_(DOUBLE_SCALAR),
162 doubleScalarToken_(
s),
163 lineNumber_(lineNumber)
bool isDoubleScalar() const
double doubleScalar
Double precision floating point scalar type.
volScalarField w(IOobject("w", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE), mesh, dimensionedScalar("w", dimensionSet(0, 0, 0, 0, 0, 0, 0), 0.0))
scalar scalarToken() const
Abstract base class for complex tokens.
A class for handling words, derived from string.
bool isFloatScalar() const
float floatScalar
Float precision floating point scalar type.
punctuationToken
Standard punctuation tokens.
const word & wordToken() const
A token holds items read from Istream.
floatScalar floatScalarToken_
A class for handling character strings derived from std::string.
static const char *const typeName
const compound & compoundToken() const
const string & stringToken() const
tokenType type_
The token type.
void clear()
Clear any allocated storage (word or string)
bool operator!=(const token &) const
bool okToDelete() const
Return true if the reference count is zero.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
floatScalar floatScalarToken() const
punctuationToken pToken() const
tokenType
Enumeration defining the types of token.
static const string null
An empty string.
static const char *const typeName
bool operator==(const token &) 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))
compound * compoundTokenPtr_
void operator=(const token &)
void parseError(const char *expected) const
Traits class for primitives.
static const word null
An empty word.
doubleScalar doubleScalarToken() const
punctuationToken punctuationToken_
bool isPunctuation() const
bool equal(const T &s1, const T &s2)
label lineNumber_
Line number in the file this token was read from.
doubleScalar doubleScalarToken_