COMP: NamedEnum specialization within 'Foam' namespace only

This commit is contained in:
Mark Olesen
2010-12-20 14:27:03 +01:00
parent a3788fe854
commit 37535ded29
2 changed files with 21 additions and 17 deletions

View File

@ -33,13 +33,20 @@ License
// * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * * // // * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * * //
template<> namespace Foam
const char* Foam::NamedEnum<Foam::vector::components, 3>::names[] =
{ {
"x", template<>
"y", const char* Foam::NamedEnum
"z" <
}; Foam::vector::components,
3
>::names[] =
{
"x",
"y",
"z"
};
}
const Foam::NamedEnum<Foam::vector::components, 3> const Foam::NamedEnum<Foam::vector::components, 3>
Foam::channelIndex::vectorComponentsNames_; Foam::channelIndex::vectorComponentsNames_;
@ -283,10 +290,4 @@ Foam::channelIndex::channelIndex
} }
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
// ************************************************************************* // // ************************************************************************* //

View File

@ -41,16 +41,19 @@ namespace Foam
dictionary dictionary
); );
} }
}
template<> template<>
const char* const char* Foam::NamedEnum
Foam::NamedEnum<Foam::tabulatedWallFunctions::general::interpolationType, 1>:: <
names[] = Foam::tabulatedWallFunctions::general::interpolationType,
1
>::names[] =
{ {
"linear" "linear"
}; };
}
const const
Foam::NamedEnum<Foam::tabulatedWallFunctions::general::interpolationType, 1> Foam::NamedEnum<Foam::tabulatedWallFunctions::general::interpolationType, 1>
Foam::tabulatedWallFunctions::general::interpolationTypeNames_; Foam::tabulatedWallFunctions::general::interpolationTypeNames_;