STYLE: add formatting of NamedEnum template arguments

This commit is contained in:
Mark Olesen
2010-12-17 14:36:13 +01:00
parent 3d2734f62b
commit 85bae17943
25 changed files with 229 additions and 85 deletions

View File

@ -30,7 +30,11 @@ License
namespace Foam
{
template<>
const char* Foam::NamedEnum<Foam::fieldAverageItem::baseType, 2>::names[] =
const char* Foam::NamedEnum
<
Foam::fieldAverageItem::baseType,
2
>::names[] =
{
"iteration",
"time"

View File

@ -36,7 +36,11 @@ defineTypeNameAndDebug(Foam::fieldMinMax, 0);
namespace Foam
{
template<>
const char* Foam::NamedEnum<Foam::fieldMinMax::modeType, 2>::names[] =
const char* Foam::NamedEnum
<
Foam::fieldMinMax::modeType,
2
>::names[] =
{
"magnitude",
"component"

View File

@ -31,21 +31,42 @@ License
defineTypeNameAndDebug(Foam::fieldValues::cellSource, 0);
template<>
const char* Foam::NamedEnum<Foam::fieldValues::cellSource::sourceType, 2>::
names[] = {"cellZone", "all"};
namespace Foam
{
template<>
const char* Foam::NamedEnum
<
Foam::fieldValues::cellSource::sourceType,
2
>::names[] =
{
"cellZone",
"all"
};
template<>
const char* Foam::NamedEnum
<
Foam::fieldValues::cellSource::operationType,
7
>::names[] =
{
"none",
"sum",
"volAverage",
"volIntegrate",
"weightedAverage",
"min",
"max"
};
}
const Foam::NamedEnum<Foam::fieldValues::cellSource::sourceType, 2>
Foam::fieldValues::cellSource::sourceTypeNames_;
template<>
const char* Foam::NamedEnum<Foam::fieldValues::cellSource::operationType, 7>::
names[] =
{
"none", "sum", "volAverage",
"volIntegrate", "weightedAverage", "min", "max"
};
const Foam::NamedEnum<Foam::fieldValues::cellSource::operationType, 7>
Foam::fieldValues::cellSource::operationTypeNames_;

View File

@ -34,25 +34,43 @@ License
defineTypeNameAndDebug(Foam::fieldValues::faceSource, 0);
template<>
const char* Foam::NamedEnum<Foam::fieldValues::faceSource::sourceType, 3>::
names[] =
namespace Foam
{
"faceZone", "patch", "sampledSurface"
};
template<>
const char* Foam::NamedEnum
<
Foam::fieldValues::faceSource::sourceType,
3
>::names[] =
{
"faceZone",
"patch",
"sampledSurface"
};
template<>
const char* Foam::NamedEnum
<
Foam::fieldValues::faceSource::operationType,
7
>::names[] =
{
"none",
"sum",
"areaAverage",
"areaIntegrate",
"weightedAverage",
"min",
"max"
};
}
const Foam::NamedEnum<Foam::fieldValues::faceSource::sourceType, 3>
Foam::fieldValues::faceSource::sourceTypeNames_;
template<>
const char* Foam::NamedEnum<Foam::fieldValues::faceSource::operationType, 7>::
names[] =
{
"none", "sum", "areaAverage",
"areaIntegrate", "weightedAverage", "min", "max"
};
const Foam::NamedEnum<Foam::fieldValues::faceSource::operationType, 7>
Foam::fieldValues::faceSource::operationTypeNames_;