STYLE: avoid namespace { ... } in functionObject source code

This commit is contained in:
Mark Olesen
2010-04-09 14:09:42 +02:00
parent 16a16090db
commit a30f977dc5
25 changed files with 83 additions and 111 deletions

View File

@ -29,10 +29,7 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam defineTypeNameAndDebug(Foam::writeRegisteredObject, 0);
{
defineTypeNameAndDebug(writeRegisteredObject, 0);
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -31,10 +31,7 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam defineTypeNameAndDebug(Foam::fieldMinMax, 0);
{
defineTypeNameAndDebug(fieldMinMax, 0);
}
template<> template<>

View File

@ -30,31 +30,27 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam defineTypeNameAndDebug(Foam::fieldValues::cellSource, 0);
template<>
const char* Foam::NamedEnum<Foam::fieldValues::cellSource::sourceType, 1>::
names[] =
{ {
namespace fieldValues "cellZone"
{ };
defineTypeNameAndDebug(cellSource, 0);
}
template<> const Foam::NamedEnum<Foam::fieldValues::cellSource::sourceType, 1>
const char* NamedEnum<fieldValues::cellSource::sourceType, 1>:: Foam::fieldValues::cellSource::sourceTypeNames_;
names[] = {"cellZone"};
const NamedEnum<fieldValues::cellSource::sourceType, 1> template<>
fieldValues::cellSource::sourceTypeNames_; const char* Foam::NamedEnum<Foam::fieldValues::cellSource::operationType, 5>::
names[] =
template<> {
const char* NamedEnum<fieldValues::cellSource::operationType, 5>::
names[] =
{
"none", "sum", "volAverage", "volIntegrate", "weightedAverage" "none", "sum", "volAverage", "volIntegrate", "weightedAverage"
}; };
const NamedEnum<fieldValues::cellSource::operationType, 5> const Foam::NamedEnum<Foam::fieldValues::cellSource::operationType, 5>
fieldValues::cellSource::operationTypeNames_; Foam::fieldValues::cellSource::operationTypeNames_;
}
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
@ -238,4 +234,3 @@ void Foam::fieldValues::cellSource::write()
// ************************************************************************* // // ************************************************************************* //

View File

@ -34,31 +34,27 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam defineTypeNameAndDebug(Foam::fieldValues::faceSource, 0);
template<>
const char* Foam::NamedEnum<Foam::fieldValues::faceSource::sourceType, 2>::
names[] =
{ {
namespace fieldValues "faceZone", "patch"
{ };
defineTypeNameAndDebug(faceSource, 0);
}
template<> const Foam::NamedEnum<Foam::fieldValues::faceSource::sourceType, 2>
const char* NamedEnum<fieldValues::faceSource::sourceType, 2>:: Foam::fieldValues::faceSource::sourceTypeNames_;
names[] = {"faceZone", "patch"};
const NamedEnum<fieldValues::faceSource::sourceType, 2> template<>
fieldValues::faceSource::sourceTypeNames_; const char* Foam::NamedEnum<Foam::fieldValues::faceSource::operationType, 5>::
names[] =
template<> {
const char* NamedEnum<fieldValues::faceSource::operationType, 5>::
names[] =
{
"none", "sum", "areaAverage", "areaIntegrate", "weightedAverage" "none", "sum", "areaAverage", "areaIntegrate", "weightedAverage"
}; };
const NamedEnum<fieldValues::faceSource::operationType, 5> const Foam::NamedEnum<Foam::fieldValues::faceSource::operationType, 5>
fieldValues::faceSource::operationTypeNames_; Foam::fieldValues::faceSource::operationTypeNames_;
}
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //

View File

@ -28,10 +28,7 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam defineTypeNameAndDebug(Foam::readFields, 0);
{
defineTypeNameAndDebug(readFields, 0);
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -31,14 +31,17 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(streamLineParticle, 0); defineTypeNameAndDebug(streamLineParticle, 0);
defineParticleTypeNameAndDebug(streamLineParticle, 0); defineParticleTypeNameAndDebug(streamLineParticle, 0);
defineTemplateTypeNameAndDebugWithName defineTemplateTypeNameAndDebugWithName
( (
IOField<vectorField>, IOField<vectorField>,
"vectorFieldField", "vectorFieldField",
0 0
); );
}; }
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //

View File

@ -30,7 +30,7 @@ License
namespace Foam namespace Foam
{ {
defineTemplateTypeNameAndDebug(Cloud<streamLineParticle>, 0); defineTemplateTypeNameAndDebug(Cloud<streamLineParticle>, 0);
}; }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -30,10 +30,7 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam defineTypeNameAndDebug(Foam::forceCoeffs, 0);
{
defineTypeNameAndDebug(forceCoeffs, 0);
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -39,10 +39,8 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam defineTypeNameAndDebug(Foam::forces, 0);
{
defineTypeNameAndDebug(forces, 0);
}
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //

View File

@ -34,14 +34,15 @@ namespace Foam
namespace sixDoFRigidBodyMotionConstraints namespace sixDoFRigidBodyMotionConstraints
{ {
defineTypeNameAndDebug(fixedAxis, 0); defineTypeNameAndDebug(fixedAxis, 0);
addToRunTimeSelectionTable addToRunTimeSelectionTable
( (
sixDoFRigidBodyMotionConstraint, sixDoFRigidBodyMotionConstraint,
fixedAxis, fixedAxis,
dictionary dictionary
); );
}; }
}; }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -34,14 +34,15 @@ namespace Foam
namespace sixDoFRigidBodyMotionConstraints namespace sixDoFRigidBodyMotionConstraints
{ {
defineTypeNameAndDebug(fixedLine, 0); defineTypeNameAndDebug(fixedLine, 0);
addToRunTimeSelectionTable addToRunTimeSelectionTable
( (
sixDoFRigidBodyMotionConstraint, sixDoFRigidBodyMotionConstraint,
fixedLine, fixedLine,
dictionary dictionary
); );
}; }
}; }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -34,14 +34,15 @@ namespace Foam
namespace sixDoFRigidBodyMotionConstraints namespace sixDoFRigidBodyMotionConstraints
{ {
defineTypeNameAndDebug(fixedOrientation, 0); defineTypeNameAndDebug(fixedOrientation, 0);
addToRunTimeSelectionTable addToRunTimeSelectionTable
( (
sixDoFRigidBodyMotionConstraint, sixDoFRigidBodyMotionConstraint,
fixedOrientation, fixedOrientation,
dictionary dictionary
); );
}; }
}; }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -34,14 +34,15 @@ namespace Foam
namespace sixDoFRigidBodyMotionConstraints namespace sixDoFRigidBodyMotionConstraints
{ {
defineTypeNameAndDebug(fixedPlane, 0); defineTypeNameAndDebug(fixedPlane, 0);
addToRunTimeSelectionTable addToRunTimeSelectionTable
( (
sixDoFRigidBodyMotionConstraint, sixDoFRigidBodyMotionConstraint,
fixedPlane, fixedPlane,
dictionary dictionary
); );
}; }
}; }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -34,14 +34,15 @@ namespace Foam
namespace sixDoFRigidBodyMotionConstraints namespace sixDoFRigidBodyMotionConstraints
{ {
defineTypeNameAndDebug(fixedPoint, 0); defineTypeNameAndDebug(fixedPoint, 0);
addToRunTimeSelectionTable addToRunTimeSelectionTable
( (
sixDoFRigidBodyMotionConstraint, sixDoFRigidBodyMotionConstraint,
fixedPoint, fixedPoint,
dictionary dictionary
); );
}; }
}; }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -35,14 +35,15 @@ namespace Foam
namespace sixDoFRigidBodyMotionRestraints namespace sixDoFRigidBodyMotionRestraints
{ {
defineTypeNameAndDebug(linearAxialAngularSpring, 0); defineTypeNameAndDebug(linearAxialAngularSpring, 0);
addToRunTimeSelectionTable addToRunTimeSelectionTable
( (
sixDoFRigidBodyMotionRestraint, sixDoFRigidBodyMotionRestraint,
linearAxialAngularSpring, linearAxialAngularSpring,
dictionary dictionary
); );
}; }
}; }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -34,14 +34,15 @@ namespace Foam
namespace sixDoFRigidBodyMotionRestraints namespace sixDoFRigidBodyMotionRestraints
{ {
defineTypeNameAndDebug(linearSpring, 0); defineTypeNameAndDebug(linearSpring, 0);
addToRunTimeSelectionTable addToRunTimeSelectionTable
( (
sixDoFRigidBodyMotionRestraint, sixDoFRigidBodyMotionRestraint,
linearSpring, linearSpring,
dictionary dictionary
); );
}; }
}; }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -34,14 +34,15 @@ namespace Foam
namespace sixDoFRigidBodyMotionRestraints namespace sixDoFRigidBodyMotionRestraints
{ {
defineTypeNameAndDebug(sphericalAngularSpring, 0); defineTypeNameAndDebug(sphericalAngularSpring, 0);
addToRunTimeSelectionTable addToRunTimeSelectionTable
( (
sixDoFRigidBodyMotionRestraint, sixDoFRigidBodyMotionRestraint,
sphericalAngularSpring, sphericalAngularSpring,
dictionary dictionary
); );
}; }
}; }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -36,14 +36,15 @@ namespace Foam
namespace sixDoFRigidBodyMotionRestraints namespace sixDoFRigidBodyMotionRestraints
{ {
defineTypeNameAndDebug(tabulatedAxialAngularSpring, 0); defineTypeNameAndDebug(tabulatedAxialAngularSpring, 0);
addToRunTimeSelectionTable addToRunTimeSelectionTable
( (
sixDoFRigidBodyMotionRestraint, sixDoFRigidBodyMotionRestraint,
tabulatedAxialAngularSpring, tabulatedAxialAngularSpring,
dictionary dictionary
); );
}; }
}; }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -29,10 +29,7 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam defineTypeNameAndDebug(Foam::systemCall, 0);
{
defineTypeNameAndDebug(systemCall, 0);
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -31,10 +31,8 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam defineTypeNameAndDebug(Foam::abortCalculation, 0);
{
defineTypeNameAndDebug(abortCalculation, 0);
}
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //

View File

@ -34,10 +34,7 @@ using namespace Foam::constant;
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam defineTypeNameAndDebug(Foam::dsmcFields, 0);
{
defineTypeNameAndDebug(dsmcFields, 0);
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -29,10 +29,8 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam defineTypeNameAndDebug(Foam::staticPressure, 0);
{
defineTypeNameAndDebug(staticPressure, 0);
}
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //

View File

@ -30,10 +30,7 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam defineTypeNameAndDebug(Foam::timeActivatedFileUpdate, 0);
{
defineTypeNameAndDebug(timeActivatedFileUpdate, 0);
}
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //

View File

@ -36,10 +36,8 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam defineTypeNameAndDebug(Foam::isoSurface, 0);
{
defineTypeNameAndDebug(isoSurface, 0);
}
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //

View File

@ -34,10 +34,8 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam defineTypeNameAndDebug(Foam::isoSurfaceCell, 0);
{
defineTypeNameAndDebug(isoSurfaceCell, 0);
}
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //