238 operator<<(os, static_cast<const T&>(*this));
276 void parseError(
const char* expected)
const;
327 inline bool good()
const;
329 inline bool error()
const;
334 inline bool isWord()
const;
355 inline scalar
number()
const;
385 inline void operator=(
const token&);
389 inline void operator=(
word*);
390 inline void operator=(
const word&);
392 inline void operator=(
string*);
393 inline void operator=(
const string&);
395 inline void operator=(
const label);
432 friend ostream& operator<<(ostream&, const InfoProxy<token>&);
440 ostream& operator<<(ostream&, const InfoProxy<token>&);
443 Ostream& operator<<(Ostream& os, const InfoProxy<token>& ip);
445 #define defineCompoundTypeName(Type, Name) \ 446 defineTemplateTypeNameAndDebugWithName(token::Compound<Type>, #Type, 0); 448 #define addCompoundToRunTimeSelectionTable(Type, Name) \ 449 token::compound::addIstreamConstructorToTable<token::Compound<Type>> \ 450 add##Name##IstreamConstructorToTable_;
doubleScalar doubleScalarToken_
virtual ~compound()
Destructor.
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)
compound * compoundTokenPtr_
Reference counter for various OpenFOAM components.
floatScalar floatScalarToken() const
bool operator==(const token &) 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.
doubleScalar doubleScalarToken() const
tokenType
Enumeration defining the types of token.
TypeName("compound")
Runtime type information.
bool isFloatScalar() const
bool operator!=(const token &) const
friend Istream & operator>>(Istream &, token &)
Abstract base class for complex tokens.
A templated class for holding compound tokens.
A class for handling words, derived from string.
punctuationToken pToken() const
Istream & operator>>(Istream &, directionInfo &)
static token undefinedToken
Static undefined token.
float floatScalar
Float precision floating point scalar type.
double doubleScalar
Double precision floating point scalar type.
scalar scalarToken() const
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool isDoubleScalar() const
const compound & compoundToken() const
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.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
word name(const complex &)
Return a string representation of a complex.
virtual label size() const =0
A helper class for outputting values to Ostream.
floatScalar floatScalarToken_
InfoProxy< token > info() const
Return info proxy.
punctuationToken punctuationToken_
Ostream & operator<<(Ostream &, const ensightPart &)
const word & wordToken() const
punctuationToken
Standard punctuation tokens.
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
bool isPunctuation() const
compound()
Construct null.
static autoPtr< compound > New(const word &type, Istream &)
Select null constructed.
const string & stringToken() const