Macros to ease declaration of run-time selection tables. More...
Go to the source code of this file.
Macros | |
#define | declareRunTimeSelectionTableBase(returnType, prefix, argList) |
#define | defineRunTimeSelectionTableBase(baseType, prefix, Tspecialize) |
#define | declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList) |
Declare a run-time selection (variables and adder classes) More... | |
#define | declareRunTimeNewSelectionTable(ptrWrapper, baseType, argNames, argList, parList) |
Declare a run-time selection for derived classes. More... | |
#define | defineRunTimeSelectionTable(baseType, argNames) |
Define run-time selection table. More... | |
#define | defineTemplateRunTimeSelectionTable(baseType, argNames) |
Define run-time selection table for template classes. More... | |
#define | defineTemplatedRunTimeSelectionTable(baseType, argNames, Targ) |
Define run-time selection table for template classes. More... | |
Macros to ease declaration of run-time selection tables.
Original source file runTimeSelectionTables.H
declareRunTimeSelectionTable is used to create a run-time selection table for a base-class which holds constructor pointers on the table.
declareRunTimeNewSelectionTable is used to create a run-time selection table for a derived-class which holds "New" pointers on the table.
Definition in file runTimeSelectionTables.H.
#define declareRunTimeSelectionTableBase | ( | returnType, | |
prefix, | |||
argList | |||
) |
Definition at line 54 of file runTimeSelectionTables.H.
#define defineRunTimeSelectionTableBase | ( | baseType, | |
prefix, | |||
Tspecialize | |||
) |
Definition at line 93 of file runTimeSelectionTables.H.
#define declareRunTimeSelectionTable | ( | ptrWrapper, | |
baseType, | |||
argNames, | |||
argList, | |||
parList | |||
) |
Declare a run-time selection (variables and adder classes)
The ptrWrapper is typically a Foam::autoPtr or a Foam::tmp container.
Definition at line 173 of file runTimeSelectionTables.H.
#define declareRunTimeNewSelectionTable | ( | ptrWrapper, | |
baseType, | |||
argNames, | |||
argList, | |||
parList | |||
) |
Declare a run-time selection for derived classes.
Definition at line 271 of file runTimeSelectionTables.H.
#define defineRunTimeSelectionTable | ( | baseType, | |
argNames | |||
) |
Define run-time selection table.
Definition at line 374 of file runTimeSelectionTables.H.
#define defineTemplateRunTimeSelectionTable | ( | baseType, | |
argNames | |||
) |
Define run-time selection table for template classes.
use when baseType doesn't need a template argument (eg, is a typedef)
Definition at line 382 of file runTimeSelectionTables.H.
#define defineTemplatedRunTimeSelectionTable | ( | baseType, | |
argNames, | |||
Targ | |||
) |
Define run-time selection table for template classes.
use when baseType requires the Targ template argument
Definition at line 390 of file runTimeSelectionTables.H.