232 operator<<(os, static_cast<const T&>(*this));
274 void parseError(
const char* expected)
const;
331 inline bool good()
const;
333 inline bool error()
const;
338 inline bool isWord()
const;
372 inline scalar
number()
const;
467 friend ostream& operator<<(ostream&, const InfoProxy<token>&);
475 ostream& operator<<(ostream&, const InfoProxy<token>&);
478 Ostream& operator<<(Ostream& os, const InfoProxy<token>& ip);
480 #define defineCompoundTypeName(Type, Name) \ 481 defineTemplateTypeNameAndDebugWithName(token::Compound<Type>, #Type, 0); 483 #define addCompoundToRunTimeSelectionTable(Type, Name) \ 484 token::compound::addIstreamConstructorToTable<token::Compound<Type>> \ 485 add##Name##IstreamConstructorToTable_;
A class for handling verbatimStrings, derived from string.
const variable & variableToken() const
doubleScalar doubleScalarToken_
const functionName & functionNameToken() const
virtual ~compound()
Destructor.
punctuationToken pToken() const
bool operator!=(const token &) const
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.
const verbatimString & verbatimStringToken() const
TypeName("compound")
Runtime type information.
bool operator==(const token &) const
scalar scalarToken() const
bool isVerbatimString() const
friend Istream & operator>>(Istream &, token &)
functionName * functionNameTokenPtr_
Abstract base class for complex tokens.
A templated class for holding compound tokens.
floatScalar floatScalarToken() const
A functionName is a word starting with '#'.
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.
verbatimString * verbatimStringTokenPtr_
punctuationToken
Standard punctuation tokens.
double doubleScalar
Double precision floating point scalar type.
const compound & compoundToken() const
const string & anyStringToken() 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.
void operator=(const compound &)=delete
Disallow default bitwise assignment.
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 &)
bool isFunctionName() const
variable * variableTokenPtr_
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.
A variable is a word with support for additional characters, in particular '$' and '/'...
bool isPunctuation() const