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. More...
 

Namespaces

namespace  Foam
 Namespace for OpenFOAM.
 

Macros

#define NoHashTableC
 
#define defineCompoundTypeName(Type, UnusedTag)    defineTemplateTypeNameAndDebugWithName(token::Compound<Type>, #Type, 0);
 Define compound using Type for its name. More...
 
#define defineNamedCompoundTypeName(Type, Name)    defineTemplateTypeNameAndDebugWithName(token::Compound<Type>, #Name, 0);
 Define compound using Name for its name. More...
 
#define addCompoundToRunTimeSelectionTable(Type, Tag)
 Add compound to selection table, lookup using typeName. More...
 
#define addNamedCompoundToRunTimeSelectionTable(Type, Tag, Name)
 Add compound to selection table, 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 50 of file token.H.

◆ defineCompoundTypeName

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

Define compound using Type for its name.

Definition at line 712 of file token.H.

◆ defineNamedCompoundTypeName

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

Define compound using Name for its name.

Definition at line 716 of file token.H.

◆ addCompoundToRunTimeSelectionTable

#define addCompoundToRunTimeSelectionTable (   Type,
  Tag 
)
Value:
token::compound::addIstreamConstructorToTable<token::Compound<Type>> \
add##Tag##IstreamConstructorToTable_;
dict add("bounds", meshBb)

Add compound to selection table, lookup using typeName.

Definition at line 720 of file token.H.

◆ addNamedCompoundToRunTimeSelectionTable

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

Add compound to selection table, lookup as Name.

Definition at line 725 of file token.H.