mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Create unique member name for addNamed...SelectionTable
We can now add the same member function with different lookups e.g. 'stl' and 'stlb' By using leading/trailing underscores around the lookup name, we get a unique name and avoid possible collision with other classes.
This commit is contained in:
@ -26,7 +26,7 @@ InClass
|
||||
Foam::memberFunctionSelectionTables
|
||||
|
||||
Description
|
||||
Macros to enable the easy insertion into member function selection tables.
|
||||
Macros for easy insertion into member function selection tables
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -47,14 +47,13 @@ Description
|
||||
\
|
||||
/* Add the thisType constructor function to the table */ \
|
||||
baseType::add##memberFunction##argNames##MemberFunctionToTable<thisType> \
|
||||
add##thisType##memberFunction##argNames##MemberFunctionTo##baseType##Table_(#lookup)
|
||||
add_##lookup##_##thisType##memberFunction##argNames##MemberFunctionTo##baseType##Table_(#lookup)
|
||||
|
||||
#define addTemplateToMemberFunctionSelectionTable\
|
||||
(baseType,thisType,Targ,memberFunction,argNames) \
|
||||
\
|
||||
/* Add the thisType constructor function to the table */ \
|
||||
baseType::add##memberFunction##argNames##MemberFunctionToTable \
|
||||
<thisType<Targ> > \
|
||||
baseType::add##memberFunction##argNames##MemberFunctionToTable<thisType<Targ> > \
|
||||
add##thisType##Targ##memberFunction##argNames##MemberFunctionTo##baseType##Table_
|
||||
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ InClass
|
||||
Foam::runTimeSelectionTables
|
||||
|
||||
Description
|
||||
Macros to enable the easy insertion into run-time selection tables.
|
||||
Macros for easy insertion into run-time selection tables
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -45,7 +45,7 @@ Description
|
||||
\
|
||||
/* Add the thisType constructor function to the table */ \
|
||||
baseType::add##argNames##ConstructorToTable<thisType> \
|
||||
add##thisType##argNames##ConstructorTo##baseType##Table_(#lookup)
|
||||
add_##lookup##_##thisType##argNames##ConstructorTo##baseType##Table_(#lookup)
|
||||
|
||||
#define addTemplateToRunTimeSelectionTable(baseType,thisType,Targ,argNames) \
|
||||
\
|
||||
|
||||
Reference in New Issue
Block a user