Commit 85bae179 authored by Mark Olesen's avatar Mark Olesen
Browse files

STYLE: add formatting of NamedEnum template arguments

parent 3d2734f6
......@@ -55,7 +55,11 @@ const Foam::NamedEnum<Foam::fileMonitor::fileState, 3>
namespace Foam
{
template<>
const char* Foam::NamedEnum<Foam::fileMonitor::fileState, 3>::names[] =
const char* Foam::NamedEnum
<
Foam::fileMonitor::fileState,
3
>::names[] =
{
"unmodified",
"modified",
......
......@@ -35,7 +35,11 @@ defineTypeNameAndDebug(Foam::UPstream, 0);
namespace Foam
{
template<>
const char* Foam::NamedEnum<Foam::UPstream::commsTypes, 3>::names[] =
const char* Foam::NamedEnum
<
Foam::UPstream::commsTypes,
3
>::names[] =
{
"blocking",
"scheduled",
......
......@@ -35,7 +35,11 @@ defineTypeNameAndDebug(Foam::Time, 0);
namespace Foam
{
template<>
const char* Foam::NamedEnum<Foam::Time::stopAtControls, 4>::names[] =
const char* Foam::NamedEnum
<
Foam::Time::stopAtControls,
4
>::names[] =
{
"endTime",
"noWriteNow",
......@@ -44,7 +48,11 @@ namespace Foam
};
template<>
const char* Foam::NamedEnum<Foam::Time::writeControls, 5>::names[] =
const char* Foam::NamedEnum
<
Foam::Time::writeControls,
5
>::names[] =
{
"timeStep",
"runTime",
......
......@@ -39,7 +39,11 @@ int Foam::regIOobject::fileModificationSkew
namespace Foam
{
template<>
const char* Foam::NamedEnum<Foam::regIOobject::fileCheckTypes, 4>::names[] =
const char* Foam::NamedEnum
<
Foam::regIOobject::fileCheckTypes,
4
>::names[] =
{
"timeStamp",
"timeStampMaster",
......
......@@ -44,19 +44,21 @@ namespace Foam
addToRunTimeSelectionTable(polyPatch, oldCyclicPolyPatch, word);
addToRunTimeSelectionTable(polyPatch, oldCyclicPolyPatch, dictionary);
template<>
const char* NamedEnum<oldCyclicPolyPatch::transformType, 3>::names[] =
{
"unknown",
"rotational",
"translational"
};
const NamedEnum<oldCyclicPolyPatch::transformType, 3>
oldCyclicPolyPatch::transformTypeNames;
template<>
const char* Foam::NamedEnum
<
Foam::oldCyclicPolyPatch::transformType,
3
>::names[] =
{
"unknown",
"rotational",
"translational"
};
}
const Foam::NamedEnum<Foam::oldCyclicPolyPatch::transformType, 3>
Foam::oldCyclicPolyPatch::transformTypeNames;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
......@@ -32,14 +32,22 @@ Foam::scalar Foam::intersection::planarTol_ = 0.2;
namespace Foam
{
template<>
const char* Foam::NamedEnum<Foam::intersection::direction, 2>::names[] =
const char* Foam::NamedEnum
<
Foam::intersection::direction,
2
>::names[] =
{
"vector",
"contactSphere"
};
template<>
const char* Foam::NamedEnum<Foam::intersection::algorithm, 3>::names[] =
const char* Foam::NamedEnum
<
Foam::intersection::algorithm,
3
>::names[] =
{
"fullRay",
"halfRay",
......
......@@ -39,7 +39,11 @@ License
namespace Foam
{
template<>
const char* Foam::NamedEnum<Foam::directions::directionType, 3>::names[] =
const char* Foam::NamedEnum
<
Foam::directions::directionType,
3
>::names[] =
{
"tan1",
"tan2",
......@@ -269,7 +273,6 @@ Foam::vectorField Foam::directions::propagateDirection
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from dictionary
Foam::directions::directions
(
const polyMesh& mesh,
......@@ -353,7 +356,7 @@ Foam::directions::directions
FatalErrorIn
(
"directions::directions(const polyMesh&, const dictionary&,"
"const twoDPointCorrector*"
"const twoDPointCorrector*)"
) << "Cannot find patch "
<< patchName
<< exit(FatalError);
......@@ -373,7 +376,7 @@ Foam::directions::directions
WarningIn
(
"directions::directions(const polyMesh&, const dictionary&,"
"const twoDPointCorrector*"
"const twoDPointCorrector*)"
) << "Discarding user specified tan1 since 2D case." << endl
<< "Recalculated tan1 from face normal and planeNormal as "
<< tan1 << endl << endl;
......@@ -441,7 +444,7 @@ Foam::directions::directions
FatalErrorIn
(
"directions::directions(const polyMesh&, const dictionary&,"
"const twoDPointCorrector*"
"const twoDPointCorrector*)"
) << "Unknown coordinate system "
<< coordSystem << endl
<< "Known types are global and patchLocal"
......
......@@ -30,7 +30,11 @@ License
namespace Foam
{
template<>
const char* Foam::NamedEnum<Foam::phaseProperties::phaseType, 4>::names[] =
const char* Foam::NamedEnum
<
Foam::phaseProperties::phaseType,
4
>::names[] =
{
"gas",
"liquid",
......
......@@ -37,8 +37,11 @@ License
namespace Foam
{
template<>
const char*
Foam::NamedEnum<Foam::refinementSurfaces::areaSelectionAlgo, 4>::names[] =
const char* Foam::NamedEnum
<
Foam::refinementSurfaces::areaSelectionAlgo,
4
>::names[] =
{
"inside",
"outside",
......
......@@ -43,7 +43,11 @@ namespace Foam
defineTypeNameAndDebug(directMappedPatchBase, 0);
template<>
const char* NamedEnum<directMappedPatchBase::sampleMode, 3>::names[] =
const char* Foam::NamedEnum
<
Foam::directMappedPatchBase::sampleMode,
3
>::names[] =
{
"nearestCell",
"nearestPatchFace",
......@@ -55,7 +59,11 @@ namespace Foam
template<>
const char* NamedEnum<directMappedPatchBase::offsetMode, 3>::names[] =
const char* Foam::NamedEnum
<
Foam::directMappedPatchBase::offsetMode,
3
>::names[] =
{
"uniform",
"nonuniform",
......@@ -74,7 +82,6 @@ namespace Foam
class nearestEqOp
{
public:
void operator()(nearInfo& x, const nearInfo& y) const
......@@ -95,6 +102,13 @@ namespace Foam
}
const Foam::NamedEnum<Foam::directMappedPatchBase::sampleMode, 3>
Foam::directMappedPatchBase::sampleModeNames_;
const Foam::NamedEnum<Foam::directMappedPatchBase::offsetMode, 3>
Foam::directMappedPatchBase::offsetModeNames_;
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
void Foam::directMappedPatchBase::collectSamples
......
......@@ -38,7 +38,11 @@ namespace Foam
addToRunTimeSelectionTable(topoSetSource, faceToCell, istream);
template<>
const char* Foam::NamedEnum<Foam::faceToCell::faceAction, 4>::names[] =
const char* Foam::NamedEnum
<
Foam::faceToCell::faceAction,
4
>::names[] =
{
"neighbour",
"owner",
......
......@@ -37,7 +37,11 @@ namespace Foam
addToRunTimeSelectionTable(topoSetSource, faceZoneToCell, istream);
template<>
const char* Foam::NamedEnum<Foam::faceZoneToCell::faceAction, 2>::names[] =
const char* Foam::NamedEnum
<
Foam::faceZoneToCell::faceAction,
2
>::names[] =
{
"master",
"slave"
......
......@@ -38,7 +38,11 @@ namespace Foam
addToRunTimeSelectionTable(topoSetSource, pointToCell, istream);
template<>
const char* Foam::NamedEnum<Foam::pointToCell::pointAction, 1>::names[] =
const char* Foam::NamedEnum
<
Foam::pointToCell::pointAction,
1
>::names[] =
{
"any"
};
......
......@@ -39,7 +39,11 @@ namespace Foam
addToRunTimeSelectionTable(topoSetSource, cellToFace, istream);
template<>
const char* Foam::NamedEnum<Foam::cellToFace::cellAction, 2>::names[] =
const char* Foam::NamedEnum
<
Foam::cellToFace::cellAction,
2
>::names[] =
{
"all",
"both"
......
......@@ -38,7 +38,11 @@ namespace Foam
addToRunTimeSelectionTable(topoSetSource, pointToFace, istream);
template<>
const char* Foam::NamedEnum<Foam::pointToFace::pointAction, 2>::names[] =
const char* Foam::NamedEnum
<
Foam::pointToFace::pointAction,
2
>::names[] =
{
"any",
"all"
......
......@@ -38,7 +38,11 @@ namespace Foam
addToRunTimeSelectionTable(topoSetSource, cellToPoint, istream);
template<>
const char* Foam::NamedEnum<Foam::cellToPoint::cellAction, 1>::names[] =
const char* Foam::NamedEnum
<
Foam::cellToPoint::cellAction,
1
>::names[] =
{
"all"
};
......
......@@ -38,7 +38,11 @@ namespace Foam
addToRunTimeSelectionTable(topoSetSource, faceToPoint, istream);
template<>
const char* Foam::NamedEnum<Foam::faceToPoint::faceAction, 1>::names[] =
const char* Foam::NamedEnum
<
Foam::faceToPoint::faceAction,
1
>::names[] =
{
"all"
};
......
......@@ -36,7 +36,11 @@ namespace Foam
defineRunTimeSelectionTable(topoSetSource, istream);
template<>
const char* Foam::NamedEnum<Foam::topoSetSource::setAction, 8>::names[] =
const char* Foam::NamedEnum
<
Foam::topoSetSource::setAction,
8
>::names[] =
{
"clear",
"new",
......
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment