OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

runTimeSelectionTables.H File Reference

Go to the source code of this file.


Defines

#define declareRunTimeSelectionTable
#define declareRunTimeNewSelectionTable
#define defineRunTimeSelectionTableConstructor
#define defineRunTimeSelectionTableDestructor
#define defineRunTimeSelectionTablePtr
#define defineTemplateRunTimeSelectionTablePtr(baseType, argNames)
#define defineRunTimeSelectionTable
#define defineTemplateRunTimeSelectionTable
#define defineTemplatedRunTimeSelectionTableConstructor
#define defineTemplatedRunTimeSelectionTableDestructor
#define defineTemplatedRunTimeSelectionTablePtr
#define defineTemplatedRunTimeSelectionTable

Detailed Description

Original source file runTimeSelectionTables.H

Definition in file runTimeSelectionTables.H.


Define Documentation

#define declareRunTimeSelectionTable

Definition at line 44 of file runTimeSelectionTables.H.

#define declareRunTimeNewSelectionTable

Definition at line 93 of file runTimeSelectionTables.H.

#define defineRunTimeSelectionTableConstructor

Value:

(baseType,argNames)                                                           \
                                                                              \
    /* Table constructor called from the table add function */                \
    void baseType::construct##argNames##ConstructorTables()                   \
    {                                                                         \
        static bool constructed = false;                                      \
                                                                              \
        if (!constructed)                                                     \
        {                                                                     \
            baseType::argNames##ConstructorTablePtr_                          \
                = new baseType::argNames##ConstructorTable;                   \
                                                                              \
            constructed = true;                                               \
        }                                                                     \
    }

Definition at line 145 of file runTimeSelectionTables.H.

#define defineRunTimeSelectionTableDestructor

Value:

(baseType,argNames)                                                           \
                                                                              \
    /* Table destructor called from the table add function destructor */      \
    void baseType::destroy##argNames##ConstructorTables()                     \
    {                                                                         \
        if (baseType::argNames##ConstructorTablePtr_)                         \
        {                                                                     \
            delete baseType::argNames##ConstructorTablePtr_;                  \
            baseType::argNames##ConstructorTablePtr_ = NULL;                  \
        }                                                                     \
    }

Definition at line 165 of file runTimeSelectionTables.H.

#define defineRunTimeSelectionTablePtr

Value:

(baseType,argNames)                                                           \
                                                                              \
    /* Define the constructor function table */                               \
    baseType::argNames##ConstructorTable*                                     \
        baseType::argNames##ConstructorTablePtr_ = NULL

Definition at line 181 of file runTimeSelectionTables.H.

#define defineTemplateRunTimeSelectionTablePtr ( baseType,
argNames   ) 

Value:

\
    /* Define the constructor function table */                               \
    typename baseType::argNames##ConstructorTable*                            \
        baseType::argNames##ConstructorTablePtr_ = NULL

Definition at line 190 of file runTimeSelectionTables.H.

#define defineRunTimeSelectionTable

Value:

(baseType,argNames)                                                           \
                                                                              \
    defineRunTimeSelectionTablePtr(baseType,argNames);                        \
    defineRunTimeSelectionTableConstructor(baseType,argNames);                \
    defineRunTimeSelectionTableDestructor(baseType,argNames)

Definition at line 203 of file runTimeSelectionTables.H.

#define defineTemplateRunTimeSelectionTable

Value:

(baseType,argNames)                                                           \
                                                                              \
    template<>                                                                \
    defineRunTimeSelectionTablePtr(baseType,argNames);                        \
    template<>                                                                \
    defineRunTimeSelectionTableConstructor(baseType,argNames);                \
    template<>                                                                \
    defineRunTimeSelectionTableDestructor(baseType,argNames)

Definition at line 215 of file runTimeSelectionTables.H.

#define defineTemplatedRunTimeSelectionTableConstructor

Value:

(baseType,argNames,Targ)                                                      \
                                                                              \
    /* Table constructor called from the table add function */                \
    void baseType< Targ >::construct##argNames##ConstructorTables()           \
    {                                                                         \
        static bool constructed = false;                                      \
                                                                              \
        if (!constructed)                                                     \
        {                                                                     \
            baseType< Targ >::argNames##ConstructorTablePtr_                  \
                = new baseType< Targ >::argNames##ConstructorTable;           \
                                                                              \
            constructed = true;                                               \
        }                                                                     \
    }

Definition at line 232 of file runTimeSelectionTables.H.

#define defineTemplatedRunTimeSelectionTableDestructor

Value:

(baseType,argNames,Targ)                                                      \
                                                                              \
    /* Table destructor called from the table add function destructor */      \
    void baseType< Targ >::destroy##argNames##ConstructorTables()             \
    {                                                                         \
        if (baseType< Targ >::argNames##ConstructorTablePtr_)                 \
        {                                                                     \
            delete baseType< Targ >::argNames##ConstructorTablePtr_;          \
            baseType< Targ >::argNames##ConstructorTablePtr_ = NULL;          \
        }                                                                     \
    }

Definition at line 253 of file runTimeSelectionTables.H.

#define defineTemplatedRunTimeSelectionTablePtr

Value:

(baseType,argNames,Targ)                                                      \
                                                                              \
    /* Define the constructor function table */                               \
    baseType< Targ >::argNames##ConstructorTable*                             \
        baseType< Targ >::argNames##ConstructorTablePtr_ = NULL

Definition at line 270 of file runTimeSelectionTables.H.

#define defineTemplatedRunTimeSelectionTable

Value:

(baseType,argNames,Targ)                                                      \
                                                                              \
    template<>                                                                \
    defineTemplatedRunTimeSelectionTablePtr(baseType,argNames,Targ);          \
    template<>                                                                \
    defineTemplatedRunTimeSelectionTableConstructor(baseType,argNames,Targ);  \
    template<>                                                                \
    defineTemplatedRunTimeSelectionTableDestructor(baseType,argNames,Targ)

Definition at line 282 of file runTimeSelectionTables.H.

Copyright © 2000-2009 OpenCFD Ltd