237 operator<<(os, static_cast<const T&>(*this));
276 void parseError(
const char* expected)
const;
330 inline bool good()
const;
332 inline bool error()
const;
337 inline bool isWord()
const;
361 inline scalar
number()
const;
391 inline void operator=(
const token&);
395 inline void operator=(
word*);
396 inline void operator=(
const word&);
398 inline void operator=(
string*);
399 inline void operator=(
const string&);
401 inline void operator=(
const label);
441 friend ostream& operator<<(ostream&, const InfoProxy<token>&);
449 ostream& operator<<(ostream&, const InfoProxy<token>&);
452 Ostream& operator<<(Ostream& os, const InfoProxy<token>& ip);
454 #define defineCompoundTypeName(Type, Name) \ 455 defineTemplateTypeNameAndDebugWithName(token::Compound<Type>, #Type, 0); 457 #define addCompoundToRunTimeSelectionTable(Type, Name) \ 458 token::compound::addIstreamConstructorToTable<token::Compound<Type>> \ 459 add##Name##IstreamConstructorToTable_;
doubleScalar doubleScalarToken_
virtual ~compound()
Destructor.
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.
compound & transferCompoundToken(const Istream &is)
bool isLongDoubleScalar() const
longDoubleScalar * longDoubleScalarTokenPtr_
compound * compoundTokenPtr_
Reference counter for various OpenFOAM components.
InfoProxy< token > info() const
Return info proxy.
const word & wordToken() const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
friend Ostream & operator<<(Ostream &, const compound &)
declareRunTimeSelectionTable(autoPtr, compound, Istream,(Istream &is),(is))
Declare run-time constructor selection table.
A token holds items read from Istream.
tokenType
Enumeration defining the types of token.
TypeName("compound")
Runtime type information.
bool operator==(const token &) const
scalar scalarToken() const
friend Istream & operator>>(Istream &, token &)
Abstract base class for complex tokens.
A templated class for holding compound tokens.
floatScalar floatScalarToken() const
A class for handling words, derived from string.
Istream & operator>>(Istream &, directionInfo &)
static token undefinedToken
Static undefined token.
float floatScalar
Float precision floating point scalar type.
punctuationToken
Standard punctuation tokens.
double doubleScalar
Double precision floating point scalar type.
const compound & compoundToken() const
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void write(Ostream &) const =0
static bool isCompound(const word &name)
Return true if name is a compound type.
The TAB Method for Numerical Calculation of Spray Droplet Breakup.
bool isFloatScalar() const
bool isDoubleScalar() const
const string & stringToken() const
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
longDoubleScalar longDoubleScalarToken() const
word name(const complex &)
Return a string representation of a complex.
long double longDoubleScalar
Lang double precision floating point scalar type.
virtual label size() const =0
A helper class for outputting values to Ostream.
floatScalar floatScalarToken_
punctuationToken punctuationToken_
Ostream & operator<<(Ostream &, const ensightPart &)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Macros to ease declaration of run-time selection tables.
static const char *const typeName
doubleScalar doubleScalarToken() const
compound()
Construct null.
static autoPtr< compound > New(const word &type, Istream &)
Select null constructed.
bool isPunctuation() const