addToRunTimeSelectionTable.H File Reference

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

Go to the source code of this file.

Macros

#define addToRunTimeSelectionTable(baseType, thisType, argNames)
 Add to construction table with typeName as the key. More...
 
#define addRemovableToRunTimeSelectionTable(baseType, thisType, argNames)
 Add to construction table with typeName as the key. More...
 
#define addNamedToRunTimeSelectionTable(baseType, thisType, argNames, lookupName)
 Add to construction table with 'lookupName' as the key. More...
 
#define addRemovableNamedToRunTimeSelectionTable(baseType, thisType, argNames, lookupName)
 Add to construction table with 'lookupName' as the key. More...
 
#define addAliasToRunTimeSelectionTable(baseType, thisType, argNames, lookup, other, ver)
 Add lookup alias for runTime selection. More...
 
#define addTemplateToRunTimeSelectionTable(baseType, thisType, Targ, argNames)
 Add to construction table with typeName as the key. More...
 
#define addNamedTemplateToRunTimeSelectionTable(baseType, thisType, Targ, argNames, lookupName)
 Add to construction table with 'lookupName' as the key. More...
 
#define addAliasTemplateToRunTimeSelectionTable(baseType, thisType, Targ, argNames, lookup, other, ver)
 Add lookup alias for for runTime selection. More...
 
#define addTemplatedToRunTimeSelectionTable(baseType, thisType, Targ, argNames)
 Add to construction table with typeName as the key. More...
 
#define addNamedTemplatedToRunTimeSelectionTable(baseType, thisType, Targ, argNames, lookupName)
 Add to construction table with 'lookupName' as the key. More...
 
#define addAliasTemplatedToRunTimeSelectionTable(baseType, thisType, Targ, argNames, lookup, other, ver)
 Add lookup alias for for runTime selection. More...
 

Detailed Description

Macros for easy insertion into run-time selection tables.

Original source file addToRunTimeSelectionTable.H

Note
The helper macro names used here must remain synchronized with definitions in runTimeSelectionTables.H

Definition in file addToRunTimeSelectionTable.H.

Macro Definition Documentation

◆ addToRunTimeSelectionTable

#define addToRunTimeSelectionTable (   baseType,
  thisType,
  argNames 
)
Value:
\
/* Add thisType factory method to the table */ \
baseType::add##argNames##ConstructorToTable<thisType> \
add##thisType##argNames##ConstructorTo##baseType##Table_

Add to construction table with typeName as the key.

Definition at line 42 of file addToRunTimeSelectionTable.H.

◆ addRemovableToRunTimeSelectionTable

#define addRemovableToRunTimeSelectionTable (   baseType,
  thisType,
  argNames 
)
Value:
\
/* Add thisType factory method to the table */ \
baseType::addRemovable##argNames##ConstructorToTable<thisType> \
addRemovable##thisType##argNames##ConstructorTo##baseType##Table_

Add to construction table with typeName as the key.

Definition at line 51 of file addToRunTimeSelectionTable.H.

◆ addNamedToRunTimeSelectionTable

#define addNamedToRunTimeSelectionTable (   baseType,
  thisType,
  argNames,
  lookupName 
)
Value:
\
/* Add thisType factory method to the table, find by lookupName */ \
baseType::add##argNames##ConstructorToTable<thisType> \
add##thisType##argNames##ConstructorTo## \
baseType##Table_##lookupName##_(#lookupName)

Add to construction table with 'lookupName' as the key.

Definition at line 60 of file addToRunTimeSelectionTable.H.

◆ addRemovableNamedToRunTimeSelectionTable

#define addRemovableNamedToRunTimeSelectionTable (   baseType,
  thisType,
  argNames,
  lookupName 
)
Value:
\
/* Add thisType factory method to the table, find by lookupName */ \
baseType::addRemovable##argNames##ConstructorToTable<thisType> \
addRemovable##thisType##argNames##ConstructorTo## \
baseType##Table_##lookupName##_(#lookupName)

Add to construction table with 'lookupName' as the key.

Definition at line 70 of file addToRunTimeSelectionTable.H.

◆ addAliasToRunTimeSelectionTable

#define addAliasToRunTimeSelectionTable (   baseType,
  thisType,
  argNames,
  lookup,
  other,
  ver 
)
Value:
\
/* Add thisType constructor function to the table, find by lookup */ \
baseType::addAlias##argNames##ConstructorToTable<thisType> \
add##thisType##argNames##ConstructorTo##baseType##Table_ \
##lookup##_##other##_(#lookup,#other,ver)

Add lookup alias for runTime selection.

Definition at line 80 of file addToRunTimeSelectionTable.H.

◆ addTemplateToRunTimeSelectionTable

#define addTemplateToRunTimeSelectionTable (   baseType,
  thisType,
  Targ,
  argNames 
)
Value:
\
/* Add thisType factory method to the table */ \
baseType::add##argNames##ConstructorToTable<thisType<Targ>> \
add##thisType##Targ##argNames##ConstructorTo##baseType##Table_

Add to construction table with typeName as the key.

Use when baseType doesn't need a template argument (eg, is a typedef)

Definition at line 93 of file addToRunTimeSelectionTable.H.

◆ addNamedTemplateToRunTimeSelectionTable

#define addNamedTemplateToRunTimeSelectionTable (   baseType,
  thisType,
  Targ,
  argNames,
  lookupName 
)
Value:
\
/* Add thisType factory method to the table, find by lookupName */ \
baseType::add##argNames##ConstructorToTable<thisType<Targ>> \
add##thisType##Targ##argNames##ConstructorTo## \
baseType##Table_##lookupName##_(#lookupName)

Add to construction table with 'lookupName' as the key.

Use when baseType doesn't need a template argument (eg, is a typedef)

Definition at line 103 of file addToRunTimeSelectionTable.H.

◆ addAliasTemplateToRunTimeSelectionTable

#define addAliasTemplateToRunTimeSelectionTable (   baseType,
  thisType,
  Targ,
  argNames,
  lookup,
  other,
  ver 
)
Value:
\
/* Add thisType constructor function to the table, find by lookup */ \
baseType::addAlias##argNames##ConstructorToTable<thisType<Targ>> \
add##thisType##Targs##argNames##ConstructorTo##baseType##Table_ \
##lookup##_##other##_(#lookup,#other,ver)

Add lookup alias for for runTime selection.

Definition at line 113 of file addToRunTimeSelectionTable.H.

◆ addTemplatedToRunTimeSelectionTable

#define addTemplatedToRunTimeSelectionTable (   baseType,
  thisType,
  Targ,
  argNames 
)
Value:
\
/* Add thisType factory method to the table */ \
baseType<Targ>::add##argNames##ConstructorToTable<thisType<Targ>> \
add##thisType##Targ##argNames##ConstructorTo##baseType##Targ##Table_

Add to construction table with typeName as the key.

Use when baseType requires the Targ template argument as well

Definition at line 126 of file addToRunTimeSelectionTable.H.

◆ addNamedTemplatedToRunTimeSelectionTable

#define addNamedTemplatedToRunTimeSelectionTable (   baseType,
  thisType,
  Targ,
  argNames,
  lookupName 
)
Value:
\
/* Add thisType factory method to the table, find by lookupName */ \
baseType<Targ>::add##argNames##ConstructorToTable<thisType<Targ>> \
add##thisType##Targ##argNames##ConstructorTo## \
baseType##Targ##Table_##lookupName##_(#lookupName)

Add to construction table with 'lookupName' as the key.

Use when baseType requires the Targ template argument as well

Definition at line 136 of file addToRunTimeSelectionTable.H.

◆ addAliasTemplatedToRunTimeSelectionTable

#define addAliasTemplatedToRunTimeSelectionTable (   baseType,
  thisType,
  Targ,
  argNames,
  lookup,
  other,
  ver 
)
Value:
\
/* Add the thisType constructor function to the table, find by lookup */ \
baseType<Targ>::add##argNames##ConstructorToTable<thisType<Targ>> \
add##thisType##Targ##argNames##ConstructorTo##baseType##Targ## \
Table_##lookup##_##other##_(#lookup,#other,ver)

Add lookup alias for for runTime selection.

Use when baseType requires the Targ template argument as well

Definition at line 147 of file addToRunTimeSelectionTable.H.

Foam::add
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Definition: FieldFieldFunctions.C:939