addToRunTimeSelectionTable.H File Reference

Macros for easy insertion into run-time selection tables. More...

Include dependency graph for addToRunTimeSelectionTable.H:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Macros

#define addToRunTimeSelectionTable(baseType, thisType, argNames)
 Add to hash-table of functions with typename as the key. More...
 
#define addNamedToRunTimeSelectionTable(baseType, thisType, argNames, lookup)
 Add to hash-table of functions with 'lookup' as the key. More...
 
#define addBackwardCompatibleToRunTimeSelectionTable(baseType, thisType, argNames, oldType, lookup)
 Add backward-compatibility duplicate of thisType, replacing oldType,. More...
 
#define addRemovableToRunTimeSelectionTable(baseType, thisType, argNames)
 Add to hash-table of functions with typename as the key. More...
 
#define addTemplatedToRunTimeSelectionTable(baseType, thisType, Targ, argNames)
 Add to hash-table of functions with typename as the key. More...
 
#define addNamedTemplatedToRunTimeSelectionTable(baseType, thisType, Targ, argNames, lookup)
 Add to hash-table of functions with 'lookup' as the key. More...
 

Functions

bool addToRunTimeSelectionTableToC (const char *baseType, const char *baseTypeName, const word &thisTypeName, const char *libName)
 

Detailed Description

Macros for easy insertion into run-time selection tables.

Original source file addToRunTimeSelectionTable.H

Definition in file addToRunTimeSelectionTable.H.

Macro Definition Documentation

◆ addToRunTimeSelectionTable

#define addToRunTimeSelectionTable (   baseType,
  thisType,
  argNames 
)
Value:
\
/* Add the thisType constructor function to the table */ \
baseType::add##argNames##ConstructorToTable<thisType> \
add##thisType##argNames##ConstructorTo##baseType##Table_; \
\
bool add##thisType##argNames##To##baseType##ToC_ = \
addToRunTimeSelectionTableToC \
(#baseType, baseType::typeName_(), thisType::typeName, STR(LIB_NAME))
#define STR(x)
Definition: macros.H:58
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)

Add to hash-table of functions with typename as the key.

Definition at line 51 of file addToRunTimeSelectionTable.H.

◆ addNamedToRunTimeSelectionTable

#define addNamedToRunTimeSelectionTable (   baseType,
  thisType,
  argNames,
  lookup 
)
Value:
\
/* Add the thisType constructor function to the table, find by lookup */ \
baseType::add##argNames##ConstructorToTable<thisType> \
add_##lookup##_##thisType##argNames##ConstructorTo##baseType##Table_ \
(#lookup); \
\
bool add_##lookup##_##thisType##argNames##To##baseType##ToC_ = \
addToRunTimeSelectionTableToC \
(#baseType, baseType::typeName_(), #lookup, STR(LIB_NAME))

Add to hash-table of functions with 'lookup' as the key.

Definition at line 64 of file addToRunTimeSelectionTable.H.

◆ addBackwardCompatibleToRunTimeSelectionTable

#define addBackwardCompatibleToRunTimeSelectionTable (   baseType,
  thisType,
  argNames,
  oldType,
  lookup 
)
Value:
\
/* Add the thisType constructor function to the table, find by lookup */ \
baseType::add##argNames##ConstructorToTable<thisType> \
add_##oldType##_##thisType##argNames##ConstructorTo##baseType##Table_ \
(lookup);

Add backward-compatibility duplicate of thisType, replacing oldType,.

to hash-table of functions with 'lookup' as the key

Definition at line 79 of file addToRunTimeSelectionTable.H.

◆ addRemovableToRunTimeSelectionTable

#define addRemovableToRunTimeSelectionTable (   baseType,
  thisType,
  argNames 
)
Value:
\
/* Add the thisType constructor function to the table */ \
baseType::addRemovable##argNames##ConstructorToTable<thisType> \
addRemovable##thisType##argNames##ConstructorTo##baseType##Table_; \
\
bool addRemovable##thisType##argNames##To##baseType##ToC_ = \
addToRunTimeSelectionTableToC \
(#baseType, baseType::typeName_(), thisType::typeName, STR(LIB_NAME))

Add to hash-table of functions with typename as the key.

Definition at line 89 of file addToRunTimeSelectionTable.H.

◆ addTemplatedToRunTimeSelectionTable

#define addTemplatedToRunTimeSelectionTable (   baseType,
  thisType,
  Targ,
  argNames 
)
Value:
\
/* Add the thisType constructor function to the table */ \
baseType<Targ>::add##argNames##ConstructorToTable<thisType<Targ>> \
add##thisType##Targ##argNames##ConstructorTo##baseType##Targ##Table_; \
\
bool add##thisType##Targ##argNames##To##baseType##Targ##ToC_ = \
addToRunTimeSelectionTableToC \
( \
#baseType, \
baseType<Targ>::typeName_(), \
thisType<Targ>::typeName, \
STR(LIB_NAME) \
)

Add to hash-table of functions with typename as the key.

Use when baseType requires the Targ template argument as well

Definition at line 105 of file addToRunTimeSelectionTable.H.

◆ addNamedTemplatedToRunTimeSelectionTable

#define addNamedTemplatedToRunTimeSelectionTable (   baseType,
  thisType,
  Targ,
  argNames,
  lookup 
)
Value:
\
/* Add the thisType constructor function to the table, find by lookup */ \
baseType<Targ>::add##argNames##ConstructorToTable<thisType<Targ>> \
add_##lookup##_##thisType##Targ##argNames##ConstructorTo##baseType## \
Targ##Table_(#lookup); \
\
bool add_##lookup##_##thisType##Targ##argNames##To##baseType##Targ##ToC_ = \
addToRunTimeSelectionTableToC \
(#baseType, baseType<Targ>::typeName_(), #lookup, STR(LIB_NAME))

Add to hash-table of functions with 'lookup' as the key.

Use when baseType requires the Targ template argument as well

Definition at line 124 of file addToRunTimeSelectionTable.H.