Loading...
Searching...
No Matches
runTimeSelectionTables.H File Reference

Macros to ease declaration of run-time selection tables. More...

Include dependency graph for runTimeSelectionTables.H:

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).
#define declareRunTimeNewSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
 Declare a run-time selection for derived classes.
#define defineRunTimeSelectionTable(baseType, argNames)
 Define run-time selection table.
#define defineTemplateRunTimeSelectionTable(baseType, argNames)
 Define run-time selection table for template classes.
#define defineTemplatedRunTimeSelectionTable(baseType, argNames, Targ)
 Define run-time selection table for template classes.

Detailed Description

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.

Macro Definition Documentation

◆ declareRunTimeSelectionTableBase

#define declareRunTimeSelectionTableBase ( returnType,
prefix,
argList )

Definition at line 48 of file runTimeSelectionTables.H.

◆ defineRunTimeSelectionTableBase

#define defineRunTimeSelectionTableBase ( baseType,
prefix,
Tspecialize )

Definition at line 87 of file runTimeSelectionTables.H.

◆ declareRunTimeSelectionTable

#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 170 of file runTimeSelectionTables.H.

Referenced by PatchFunction1< Type >::TypeName().

◆ declareRunTimeNewSelectionTable

#define declareRunTimeNewSelectionTable ( ptrWrapper,
baseType,
argNames,
argList,
parList )

Declare a run-time selection for derived classes.

Definition at line 270 of file runTimeSelectionTables.H.

◆ defineRunTimeSelectionTable

#define defineRunTimeSelectionTable ( baseType,
argNames )
Value:
\
defineRunTimeSelectionTableBase( \
baseType,baseType::argNames##Constructor,)

Define run-time selection table.

Definition at line 375 of file runTimeSelectionTables.H.

◆ defineTemplateRunTimeSelectionTable

#define defineTemplateRunTimeSelectionTable ( baseType,
argNames )
Value:
\
defineRunTimeSelectionTableBase( \
baseType,baseType::argNames##Constructor,template<>)

Define run-time selection table for template classes.

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

Definition at line 386 of file runTimeSelectionTables.H.

◆ defineTemplatedRunTimeSelectionTable

#define defineTemplatedRunTimeSelectionTable ( baseType,
argNames,
Targ )
Value:
\
defineRunTimeSelectionTableBase( \
baseType,baseType<Targ>::argNames##Constructor,template<>)

Define run-time selection table for template classes.

use when baseType requires the Targ template argument

Definition at line 397 of file runTimeSelectionTables.H.