41#define ClassNameNoDebug(TypeNameString) \
42 static const char* typeName_() { return TypeNameString; } \
43 static const ::Foam::word typeName
47#define NamespaceNameNoDebug(TypeNameString) \
48 inline const char* typeName_() { return TypeNameString; } \
49 extern const ::Foam::word typeName
53#define TemplateNameNoDebug(TemplateNameString) \
54class TemplateNameString##Name \
57 TemplateNameString##Name() {} \
58 ClassNameNoDebug(#TemplateNameString); \
67#define ClassName(TypeNameString) \
68 ClassNameNoDebug(TypeNameString); \
73#define NamespaceName(TypeNameString) \
74 NamespaceNameNoDebug(TypeNameString); \
79#define TemplateName(TemplateNameString) \
80class TemplateNameString##Name \
83 TemplateNameString##Name() {} \
84 ClassName(#TemplateNameString); \
92#define defineTypeNameWithName(Type, Name) \
93 const ::Foam::word Type::typeName(Name)
96#define defineTypeName(Type) \
97 defineTypeNameWithName(Type, Type::typeName_())
100#define defineTemplateTypeNameWithName(Type, Name) \
102 defineTypeNameWithName(Type, Name)
104#define defineTemplate2TypeNameWithName(Type, Name) \
106 defineTypeNameWithName(Type, Name)
109#define defineTemplateTypeName(Type) \
110 defineTemplateTypeNameWithName(Type, #Type)
113#define defineNamedTemplateTypeName(Type) \
114 defineTemplateTypeNameWithName(Type, Type::typeName_())
121#define defineTypeNameAndDebug(Type, DebugSwitch) \
122 defineTypeName(Type); \
123 defineDebugSwitch(Type, DebugSwitch)
126#define defineTemplateTypeNameAndDebugWithName(Type, Name, DebugSwitch) \
127 defineTemplateTypeNameWithName(Type, Name); \
128 defineTemplateDebugSwitchWithName(Type, Name, DebugSwitch)
132#define defineTemplateTypeNameAndDebug(Type, DebugSwitch) \
133 defineTemplateTypeNameAndDebugWithName(Type, #Type, DebugSwitch)
136#define defineNamedTemplateTypeNameAndDebug(Type, DebugSwitch) \
137 defineNamedTemplateTypeName(Type); \
138 defineNamedTemplateDebugSwitch(Type, DebugSwitch)
145#define defineTemplate2TypeNameAndDebugWithName(Type, Name, DebugSwitch) \
146 defineTemplate2TypeNameWithName(Type, Name); \
147 defineTemplate2DebugSwitchWithName(Type, Name, DebugSwitch)
151#define defineTemplate2TypeNameAndDebug(Type, DebugSwitch) \
152 defineTemplate2TypeNameAndDebugWithName(Type, #Type, DebugSwitch)
#define TemplateName(TemplateNameString)
Add typeName information from argument TypeNameString to a.
#define ClassNameNoDebug(TypeNameString)
Add typeName information from argument TypeNameString to a class.
#define NamespaceNameNoDebug(TypeNameString)
Add typeName information from argument TypeNameString to a namespace.
#define NamespaceName(TypeNameString)
Add typeName information from argument TypeNameString to a namespace.
#define TemplateNameNoDebug(TemplateNameString)
Add typeName information from argument TemplateNameString to a.
#define defineTemplateTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information for templates, useful.
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.
#define defineTemplate2TypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information for templates, useful.
Macro definitions for debug switches.
int debug
Static debugging option.