ENH: searchableSurface: names for inside/outside status

This commit is contained in:
mattijs
2011-06-27 15:03:03 +01:00
parent 876810dd0c
commit 01e3374e8c
2 changed files with 18 additions and 1 deletions

View File

@ -32,8 +32,24 @@ namespace Foam
{ {
defineTypeNameAndDebug(searchableSurface, 0); defineTypeNameAndDebug(searchableSurface, 0);
defineRunTimeSelectionTable(searchableSurface, dict); defineRunTimeSelectionTable(searchableSurface, dict);
template<>
const char* Foam::NamedEnum
<
Foam::searchableSurface::volumeType,
4
>::names[] =
{
"unknown",
"mixed",
"inside",
"outside"
};
} }
const Foam::NamedEnum<Foam::searchableSurface::volumeType, 4>
Foam::searchableSurface::volumeTypeNames;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -81,6 +81,8 @@ public:
OUTSIDE = 3 OUTSIDE = 3
}; };
static const NamedEnum<volumeType, 4> volumeTypeNames;
private: private:
// Private data // Private data
@ -89,7 +91,6 @@ private:
boundBox bounds_; boundBox bounds_;
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct