Loading...
Searching...
No Matches
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

namespace  Foam
 Namespace for OpenFOAM.

Macros

#define NoHashTableC
#define defineCompoundTypeName(Type, UnusedTag)
 Define compound using Type for its name.
#define defineNamedCompoundTypeName(Type, Name)
 Define compound using Name for its name.
#define addCompoundToRunTimeSelectionTable(Type, Tag)
 Add compound to selection tables, lookup using typeName.
#define addNamedCompoundToRunTimeSelectionTable(Type, Tag, Name)
 Add compound to selection tables, lookup as Name.

Functions

Ostreamoperator<< (Ostream &os, const token &tok)
Istreamoperator>> (Istream &is, token &tok)
 Read token from Istream. Same as token::read() but returns stream state.
Ostreamoperator<< (Ostream &os, const token::punctuationToken &pt)
ostreamoperator<< (ostream &os, const token::punctuationToken &pt)
Ostreamoperator<< (Ostream &os, const token::compound &ct)
ostreamoperator<< (ostream &os, const InfoProxy< token > &ip)
template<>
Ostreamoperator<< (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 51 of file token.H.

◆ defineCompoundTypeName

#define defineCompoundTypeName ( Type,
UnusedTag )
Value:
defineTemplateTypeNameWithName(token::Compound<Type>, #Type);
#define defineTemplateTypeNameWithName(Type, Name)
Define the typeName as Name for template classes.
Definition className.H:119

Define compound using Type for its name.

Definition at line 1451 of file token.H.

◆ defineNamedCompoundTypeName

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

Define compound using Name for its name.

Definition at line 1457 of file token.H.

◆ addCompoundToRunTimeSelectionTable

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

Add compound to selection tables, lookup using typeName.

Definition at line 1463 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 1470 of file token.H.