FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

runTimeSelectionTables.H File Reference


Detailed Description

Definition in file runTimeSelectionTables.H.

#include "src/OpenFOAM/db/IOstreams/token/token.H"
#include "src/OpenFOAM/memory/autoPtr/autoPtr.H"
#include "src/OpenFOAM/containers/HashTables/HashTable/HashTable.H"
Include dependency graph for runTimeSelectionTables.H:

Go to the source code of this file.

Defines

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

Define Documentation

#define declareRunTimeSelectionTable (   autoPtr,
  baseType,
  argNames,
  argList,
  parList  
)

Definition at line 52 of file runTimeSelectionTables.H.

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

Definition at line 101 of file runTimeSelectionTables.H.

#define defineRunTimeSelectionTableConstructor (   baseType,
  argNames  
)
Value:
\
    /* 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 153 of file runTimeSelectionTables.H.

#define defineRunTimeSelectionTableDestructor (   baseType,
  argNames  
)
Value:
\
    /* 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 173 of file runTimeSelectionTables.H.

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

Definition at line 189 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 198 of file runTimeSelectionTables.H.

#define defineRunTimeSelectionTable (   baseType,
  argNames  
)
Value:

Definition at line 211 of file runTimeSelectionTables.H.

#define defineTemplateRunTimeSelectionTable (   baseType,
  argNames  
)
Value:
\
    template<>                                                                \
    defineRunTimeSelectionTablePtr(baseType,argNames);                        \
    template<>                                                                \
    defineRunTimeSelectionTableConstructor(baseType,argNames);                \
    template<>                                                                \
    defineRunTimeSelectionTableDestructor(baseType,argNames)

Definition at line 223 of file runTimeSelectionTables.H.

#define defineTemplatedRunTimeSelectionTableConstructor (   baseType,
  argNames,
  Targ  
)
Value:
\
    /* 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 240 of file runTimeSelectionTables.H.

#define defineTemplatedRunTimeSelectionTableDestructor (   baseType,
  argNames,
  Targ  
)
Value:
\
    /* 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 261 of file runTimeSelectionTables.H.

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

Definition at line 278 of file runTimeSelectionTables.H.

#define defineTemplatedRunTimeSelectionTable (   baseType,
  argNames,
  Targ  
)
Value:
\
    template<>                                                                \
    defineTemplatedRunTimeSelectionTablePtr(baseType,argNames,Targ);          \
    template<>                                                                \
    defineTemplatedRunTimeSelectionTableConstructor(baseType,argNames,Targ);  \
    template<>                                                                \
    defineTemplatedRunTimeSelectionTableDestructor(baseType,argNames,Targ)

Definition at line 290 of file runTimeSelectionTables.H.