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