Macros
globalFunctionSelectionTables.H File Reference

Macros to enable the easy declaration of global function selection tables. More...

Include dependency graph for globalFunctionSelectionTables.H:

Go to the source code of this file.

Macros

#define declareGlobalFunctionSelectionTable(returnType, memberFunction, argNames, argList, parList)
 
#define defineGlobalFunctionSelectionTableConstructDestruct(memberFunction, argNames)
 
#define defineGlobalFunctionSelectionTablePtr(memberFunction, argNames)
 
#define defineGlobalFunctionSelectionTable(memberFunction, argNames)
 

Detailed Description

Macros to enable the easy declaration of global function selection tables.

Original source file globalFunctionSelectionTables.H

Definition in file globalFunctionSelectionTables.H.

Macro Definition Documentation

#define declareGlobalFunctionSelectionTable (   returnType,
  memberFunction,
  argNames,
  argList,
  parList 
)

Definition at line 39 of file globalFunctionSelectionTables.H.

#define defineGlobalFunctionSelectionTableConstructDestruct (   memberFunction,
  argNames 
)
Value:
\
/* Table constructor called from the table add function */ \
void construct##memberFunction##argNames##MemberFunctionTables() \
{ \
static bool constructed = false; \
if (!constructed) \
{ \
constructed = true; \
memberFunction##argNames##MemberFunctionTablePtr_ \
= new memberFunction##argNames##MemberFunctionTable; \
} \
} \
\
/* Table destructor called from the table add function destructor */ \
void destroy##memberFunction##argNames##MemberFunctionTables() \
{ \
if (memberFunction##argNames##MemberFunctionTablePtr_) \
{ \
delete memberFunction##argNames##MemberFunctionTablePtr_; \
memberFunction##argNames##MemberFunctionTablePtr_ = NULL; \
} \
}

Definition at line 88 of file globalFunctionSelectionTables.H.

#define defineGlobalFunctionSelectionTablePtr (   memberFunction,
  argNames 
)
Value:
\
/* Define the memberFunction table */ \
memberFunction##argNames##MemberFunctionTable* \
memberFunction##argNames##MemberFunctionTablePtr_ = NULL

Definition at line 116 of file globalFunctionSelectionTables.H.

#define defineGlobalFunctionSelectionTable (   memberFunction,
  argNames 
)
Value:
\
defineGlobalFunctionSelectionTablePtr \
(memberFunction,argNames); \
defineGlobalFunctionSelectionTableConstructDestruct \
(memberFunction,argNames)

Definition at line 129 of file globalFunctionSelectionTables.H.