mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: add formatting of NamedEnum template arguments
This commit is contained in:
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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_;
|
||||
|
||||
|
||||
@ -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_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user