token.H File Reference
Include dependency graph for token.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  token
 A token holds an item read from Istream. More...
 
class  token::compound
 Abstract base class for complex tokens. More...
 
class  token::Compound< T >
 A templated class for holding compound tokens. The underlying container is normally a List of values, it must have a value_type typedef as well as size(), resize(), cdata_bytes(), data_bytes(), size_bytes() methods. More...
 

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Macros

#define NoHashTableC
 
#define defineCompoundTypeName(Type, UnusedTag)   defineTemplateTypeNameWithName(token::Compound<Type>, #Type);
 Define compound using Type for its name. More...
 
#define defineNamedCompoundTypeName(Type, Name)   defineTemplateTypeNameWithName(token::Compound<Type>, #Name);
 Define compound using Name for its name. More...
 
#define addCompoundToRunTimeSelectionTable(Type, Tag)
 Add compound to selection tables, lookup using typeName. More...
 
#define addNamedCompoundToRunTimeSelectionTable(Type, Tag, Name)
 Add compound to selection tables, lookup as Name. More...
 

Functions

Ostream & operator<< (Ostream &os, const token &tok)
 
Istream & operator>> (Istream &is, token &tok)
 
Ostream & operator<< (Ostream &os, const token::punctuationToken &pt)
 
ostream & operator<< (ostream &os, const token::punctuationToken &pt)
 
Ostream & operator<< (Ostream &os, const token::compound &ct)
 
ostream & operator<< (ostream &os, const InfoProxy< token > &ip)
 
template<>
Ostream & operator<< (Ostream &os, const InfoProxy< token > &ip)
 

Detailed Description

Original source file token.H

Definition in file token.H.

Macro Definition Documentation

◆ NoHashTableC

#define NoHashTableC

Definition at line 47 of file token.H.

◆ defineCompoundTypeName

#define defineCompoundTypeName (   Type,
  UnusedTag 
)    defineTemplateTypeNameWithName(token::Compound<Type>, #Type);

Define compound using Type for its name.

Definition at line 1249 of file token.H.

◆ defineNamedCompoundTypeName

#define defineNamedCompoundTypeName (   Type,
  Name 
)    defineTemplateTypeNameWithName(token::Compound<Type>, #Name);

Define compound using Name for its name.

Definition at line 1255 of file token.H.

◆ addCompoundToRunTimeSelectionTable

#define addCompoundToRunTimeSelectionTable (   Type,
  Tag 
)
Value:
token::compound::addemptyConstructorToTable<token::Compound<Type>> \
add##Tag##emptyConstructorToTable_;

Add compound to selection tables, lookup using typeName.

Definition at line 1261 of file token.H.

◆ addNamedCompoundToRunTimeSelectionTable

#define addNamedCompoundToRunTimeSelectionTable (   Type,
  Tag,
  Name 
)
Value:
token::compound::addemptyConstructorToTable<token::Compound<Type>> \
add##Tag##emptyConstructorToTable_(#Name);

Add compound to selection tables, lookup as Name.

Definition at line 1268 of file token.H.