STYLE: consistent brackets for Enum construction

This commit is contained in:
Mark Olesen 2019-05-31 10:44:23 +02:00 committed by Andrew Heather
parent d28267520f
commit 2413d4d898
8 changed files with 20 additions and 20 deletions

View File

@ -42,12 +42,12 @@ namespace functionObjects
const Foam::Enum<Foam::functionObjects::timeControl::controlMode>
Foam::functionObjects::timeControl::controlModeNames_
{
({
{ controlMode::TIME, "time" },
{ controlMode::TRIGGER, "trigger" },
{ controlMode::TIME_OR_TRIGGER, "timeOrTrigger" },
{ controlMode::TIME_AND_TRIGGER, "timeAndTrigger" }
};
});
// * * * * * * * * * * * * * * * Private Members * * * * * * * * * * * * * * //

View File

@ -40,10 +40,10 @@ Foam::word Foam::cloud::defaultName("defaultCloud");
const Foam::Enum<Foam::cloud::geometryType>
Foam::cloud::geometryTypeNames
{
({
{ geometryType::COORDINATES, "coordinates" },
{ geometryType::POSITIONS, "positions" }
};
});
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -35,7 +35,7 @@ Foam::PtrList<Foam::cellModel> Foam::cellModel::models_;
Foam::List<const Foam::cellModel*> Foam::cellModel::modelPtrs_;
const Foam::Enum<Foam::cellModel::modelType> Foam::cellModel::modelNames
{
({
{ modelType::UNKNOWN, "unknown" },
{ modelType::HEX, "hex" },
{ modelType::WEDGE, "wedge" },
@ -44,7 +44,7 @@ const Foam::Enum<Foam::cellModel::modelType> Foam::cellModel::modelNames
{ modelType::TET, "tet" },
{ modelType::TETWEDGE, "tetWedge" },
{ modelType::SPLITHEX, "splitHex" },
};
});
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //

View File

@ -29,21 +29,21 @@ License
const Foam::Enum<Foam::bounds::normalBounding>
Foam::bounds::normalBoundingNames
{
({
{ normalBounding::ERROR, "error" },
{ normalBounding::WARN, "warn" },
{ normalBounding::CLAMP, "clamp" },
};
});
const Foam::Enum<Foam::bounds::repeatableBounding>
Foam::bounds::repeatableBoundingNames
{
({
{ repeatableBounding::ERROR, "error" },
{ repeatableBounding::WARN, "warn" },
{ repeatableBounding::CLAMP, "clamp" },
{ repeatableBounding::REPEAT, "repeat" },
};
});
// ************************************************************************* //

View File

@ -29,11 +29,11 @@ License
const Foam::Enum<Foam::parsing::errorType>
Foam::parsing::errorNames
{
({
{ errorType::GENERAL, "General error parsing" },
{ errorType::RANGE, "Range error while parsing" },
{ errorType::TRAILING, "Trailing content found parsing" },
};
});
// ************************************************************************* //

View File

@ -32,12 +32,12 @@ const Foam::Enum
Foam::vtk::fileTag
>
Foam::vtk::fileExtension
{
({
{ fileTag::POLY_DATA, "vtp" },
{ fileTag::UNSTRUCTURED_GRID, "vtu" },
{ fileTag::MULTI_BLOCK, "vtm" },
// { fileTag::COLLECTION, "pvd" },
};
});
const Foam::Enum
@ -45,12 +45,12 @@ const Foam::Enum
Foam::vtk::fileTag
>
Foam::vtk::fileContentVersions
{
({
{ fileTag::POLY_DATA, "0.1" },
{ fileTag::UNSTRUCTURED_GRID, "0.1" },
{ fileTag::MULTI_BLOCK, "1.0" },
// { fileTag::COLLECTION, "0.1" },
};
});
const Foam::Enum

View File

@ -33,7 +33,7 @@ const Foam::Enum
Foam::vtk::fileWriter::outputState
>
Foam::vtk::fileWriter::stateNames
{
({
{ outputState::CLOSED, "closed" },
{ outputState::OPENED, "opened" },
{ outputState::DECLARED, "declared" },
@ -41,7 +41,7 @@ Foam::vtk::fileWriter::stateNames
{ outputState::PIECE, "Piece" },
{ outputState::CELL_DATA, "CellData" },
{ outputState::POINT_DATA, "PointData" },
};
});
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //

View File

@ -48,11 +48,11 @@ const Foam::Enum
Foam::functionObjects::runTimeControls::averageCondition::windowType
>
Foam::functionObjects::runTimeControls::averageCondition::windowTypeNames
{
({
{ windowType::NONE, "none" },
{ windowType::APPROXIMATE, "approximate" },
{ windowType::EXACT, "exact" }
};
});
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //