From f7ea836c6576d894626315374e067a5ad7000ff9 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Wed, 29 May 2019 15:48:49 +0100 Subject: [PATCH] src/OpenFOAM: Moved the deleted bitwise copy and assignment declarations into public section of the class --- src/OpenFOAM/algorithms/subCycle/subCycle.H | 17 +++---- .../HashTables/HashTable/HashTable.H | 2 - .../linkTypes/DLListBase/DLListBase.H | 18 ++++---- .../linkTypes/SLListBase/SLListBase.H | 18 ++++---- .../containers/Lists/Histogram/Histogram.H | 17 ++++--- .../Lists/IndirectList/IndirectList.H | 18 ++++---- src/OpenFOAM/db/Callback/Callback.H | 12 ++--- .../db/CallbackRegistry/CallbackRegistry.H | 17 +++---- src/OpenFOAM/db/IOobjectList/IOobjectList.H | 11 ++--- src/OpenFOAM/db/IOstreams/Sstreams/ISstream.H | 9 ++-- src/OpenFOAM/db/IOstreams/Sstreams/OSstream.H | 12 ++--- .../db/IOstreams/hashes/OSHA1stream.H | 20 ++++----- src/OpenFOAM/db/IOstreams/token/token.H | 45 ++++++++----------- .../functionEntries/calcEntry/calcEntry.H | 21 +++++---- .../functionEntries/codeStream/codeStream.H | 18 +++++--- .../functionEntry/functionEntry.H | 15 ++++--- .../functionEntries/ifEntry/ifEntry.H | 19 +++++--- .../functionEntries/ifeqEntry/ifeqEntry.H | 24 +++++----- .../includeEntry/includeEntry.H | 19 +++++--- .../includeEtcEntry/includeEtcEntry.H | 18 +++++--- .../includeIfPresentEntry.H | 18 +++++--- .../inputModeEntry/inputModeEntry.H | 18 +++++--- .../functionEntries/negEntry/negEntry.H | 18 +++++--- .../functionEntries/removeEntry/removeEntry.H | 20 +++++---- .../db/dynamicLibrary/codedBase/codedBase.H | 15 ++++--- .../dlLibraryTable/dlLibraryTable.H | 16 ++++--- .../dynamicLibrary/dynamicCode/dynamicCode.H | 17 ++++--- .../IOOutputFilter/IOOutputFilter.H | 15 ++++--- .../functionObject/functionObject.H | 18 ++++---- .../functionObjectList/functionObjectList.H | 15 ++++--- .../db/functionObjects/logFiles/logFiles.H | 20 ++++----- .../regionFunctionObject.H | 20 ++++----- .../functionObjects/timeControl/timeControl.H | 18 ++++---- .../timeControl/timeControlFunctionObject.H | 15 ++++--- .../db/functionObjects/writeFile/writeFile.H | 20 ++++----- .../writeLocalObjects/writeLocalObjects.H | 20 ++++----- .../writeObjectsBase/writeObjectsBase.H | 20 ++++----- .../db/objectRegistry/objectRegistry.H | 15 ++++--- .../SlicedGeometricField.H | 34 ++++++++------ src/OpenFOAM/fields/cloud/cloud.H | 18 ++++---- .../pointPatchFieldMapperPatchRef.H | 24 +++++----- .../interpolationWeights.H | 18 ++++---- .../PatchToPatchInterpolation.H | 14 +++--- .../PrimitivePatchInterpolation.H | 22 ++++----- .../uniformInterpolationTable.H | 9 ++-- .../LduInterfaceField/LduInterfaceField.H | 17 +++---- .../DiagonalPreconditioner.H | 18 ++++---- .../NoPreconditioner/NoPreconditioner.H | 17 +++---- .../Solvers/DiagonalSolver/DiagonalSolver.H | 17 +++---- .../LduMatrix/Solvers/PBiCCCG/PBiCCCG.H | 17 +++---- .../LduMatrix/Solvers/PBiCICG/PBiCICG.H | 17 +++---- .../matrices/LduMatrix/Solvers/PCICG/PCICG.H | 17 +++---- .../lduMatrix/lduAddressing/lduAddressing.H | 32 +++++++------ .../lduAddressing/lduInterface/lduInterface.H | 17 +++---- .../lduInterfaceField/lduInterfaceField.H | 18 ++++---- .../FDICPreconditioner/FDICPreconditioner.H | 18 ++++---- .../diagonalPreconditioner.H | 18 ++++---- .../noPreconditioner/noPreconditioner.H | 17 +++---- .../GAMGAgglomeration/GAMGAgglomeration.H | 20 ++++----- .../dummyAgglomeration/dummyAgglomeration.H | 19 ++++---- .../pairGAMGAgglomeration.H | 15 ++++--- .../GAMGProcAgglomeration.H | 20 ++++----- .../eagerGAMGProcAgglomeration.H | 22 ++++----- .../manualGAMGProcAgglomeration.H | 23 +++++----- .../masterCoarsestGAMGProcAgglomeration.H | 23 +++++----- .../noneGAMGProcAgglomeration.H | 22 ++++----- .../procFacesGAMGProcAgglomeration.H | 20 +++++---- .../GAMGInterfaceField/GAMGInterfaceField.H | 17 ++++--- .../cyclicGAMGInterfaceField.H | 18 ++++---- .../processorGAMGInterfaceField.H | 25 +++++------ .../interfaces/GAMGInterface/GAMGInterface.H | 20 ++++----- .../cyclicGAMGInterface/cyclicGAMGInterface.H | 18 ++++---- .../processorCyclicGAMGInterface.H | 22 ++++----- .../processorGAMGInterface.H | 18 ++++---- .../matrices/lduMatrix/solvers/PBiCG/PBiCG.H | 17 +++---- .../lduMatrix/solvers/PBiCGStab/PBiCGStab.H | 17 +++---- .../matrices/lduMatrix/solvers/PCG/PCG.H | 17 +++---- .../solvers/diagonalSolver/diagonalSolver.H | 17 +++---- .../matrices/scalarMatrices/SVD/SVD.H | 15 ++++--- src/OpenFOAM/matrices/solution/solution.H | 12 +++-- src/OpenFOAM/matrices/tolerances/tolerances.H | 15 ++++--- src/OpenFOAM/meshes/Residuals/Residuals.H | 18 ++++---- .../meshes/lduMesh/lduPrimitiveMesh.H | 15 ++++--- .../meshShapes/cellMatcher/cellMatcher.H | 16 +++---- .../meshShapes/cellMatcher/hexMatcher.H | 19 ++++---- .../meshShapes/cellMatcher/prismMatcher.H | 19 ++++---- .../meshShapes/cellMatcher/pyrMatcher.H | 19 ++++---- .../meshShapes/cellMatcher/tetMatcher.H | 19 ++++---- .../meshShapes/cellMatcher/tetWedgeMatcher.H | 19 ++++---- .../meshShapes/cellMatcher/wedgeMatcher.H | 19 ++++---- .../pointBoundaryMesh/pointBoundaryMesh.H | 15 ++++--- src/OpenFOAM/meshes/pointMesh/pointMesh.H | 12 ++--- .../pointMeshMapper/pointBoundaryMeshMapper.H | 17 +++---- .../pointMesh/pointMeshMapper/pointMapper.H | 16 ++++--- .../pointMeshMapper/pointMeshMapper.H | 18 ++++---- .../pointMeshMapper/pointPatchMapper.H | 22 ++++----- .../facePointPatch/facePointPatch.H | 20 ++++----- .../pointPatches/pointPatch/pointPatch.H | 18 ++++---- .../polyMesh/globalMeshData/globalMeshData.H | 16 ++++--- .../polyMesh/globalMeshData/globalPoints.H | 15 ++++--- .../mapPolyMesh/cellMapper/cellMapper.H | 16 ++++--- .../mapPolyMesh/faceMapper/faceMapper.H | 16 ++++--- .../mapDistribute/mapDistributePolyMesh.H | 7 +-- .../meshes/polyMesh/mapPolyMesh/mapPolyMesh.H | 18 ++++---- src/OpenFOAM/meshes/polyMesh/polyMesh.H | 15 ++++--- .../meshes/polyMesh/zones/cellZone/cellZone.H | 12 ++--- .../meshes/polyMesh/zones/faceZone/faceZone.H | 10 ++--- .../polyMesh/zones/pointZone/pointZone.H | 8 ++-- .../meshes/polyMesh/zones/zone/zone.H | 6 +-- .../meshes/primitiveMesh/primitiveMesh.H | 18 ++++---- .../primitiveMesh/primitivePatch/walkPatch.H | 14 +++--- .../primitives/functions/Function1/CSV/CSV.H | 9 ++-- .../functions/Function1/Constant/Constant.H | 12 ++--- .../functions/Function1/Function1/Function1.H | 11 ++--- .../functions/Function1/One/OneConstant.H | 11 ++--- .../PolynomialEntry/PolynomialEntry.H | 12 ++--- .../functions/Function1/Scale/Scale.H | 9 ++-- .../functions/Function1/Sine/Sine.H | 9 ++-- .../functions/Function1/Square/Square.H | 9 ++-- .../functions/Function1/Table/Table.H | 11 ++--- .../functions/Function1/TableFile/TableFile.H | 12 ++--- .../functions/Function1/Uniform/Uniform.H | 11 ++--- .../functions/Function1/Zero/ZeroConstant.H | 11 ++--- .../Function1/halfCosineRamp/halfCosineRamp.H | 11 ++--- .../Function1/linearRamp/linearRamp.H | 11 ++--- .../Function1/quadraticRamp/quadraticRamp.H | 11 ++--- .../quarterCosineRamp/quarterCosineRamp.H | 11 ++--- .../quarterSineRamp/quarterSineRamp.H | 11 ++--- .../functions/Function1/ramp/ramp.H | 9 ++-- .../globalIndexAndTransform.H | 14 +++--- .../primitives/nullObject/nullObject.H | 10 ++--- .../primitives/subModelBase/subModelBase.H | 11 ++--- 132 files changed, 1155 insertions(+), 1022 deletions(-) diff --git a/src/OpenFOAM/algorithms/subCycle/subCycle.H b/src/OpenFOAM/algorithms/subCycle/subCycle.H index 6b1f980bbc..0da4796276 100644 --- a/src/OpenFOAM/algorithms/subCycle/subCycle.H +++ b/src/OpenFOAM/algorithms/subCycle/subCycle.H @@ -211,14 +211,6 @@ class subCycle public SubCycleField, public subCycleTime { - // Private Member Functions - - //- Disallow default bitwise copy construct - subCycle(const subCycle&) = delete; - - //- Disallow default bitwise assignment - void operator=(const subCycle&) = delete; - public: @@ -238,6 +230,9 @@ public: this->updateTimeIndex(); } + //- Disallow default bitwise copy construct + subCycle(const subCycle&) = delete; + //- Destructor // End the subCycleTime, which restores the time state @@ -245,6 +240,12 @@ public: { endSubCycle(); } + + + // Member Operators + + //- Disallow default bitwise assignment + void operator=(const subCycle&) = delete; }; diff --git a/src/OpenFOAM/containers/HashTables/HashTable/HashTable.H b/src/OpenFOAM/containers/HashTables/HashTable/HashTable.H index 0eb7a92dfb..ab10c50e7e 100644 --- a/src/OpenFOAM/containers/HashTables/HashTable/HashTable.H +++ b/src/OpenFOAM/containers/HashTables/HashTable/HashTable.H @@ -143,8 +143,6 @@ class HashTable //- Construct from key, next pointer and object inline hashedEntry(const Key&, hashedEntry* next, const T&); - - private: //- Disallow default bitwise copy construct hashedEntry(const hashedEntry&) = delete; diff --git a/src/OpenFOAM/containers/LinkedLists/linkTypes/DLListBase/DLListBase.H b/src/OpenFOAM/containers/LinkedLists/linkTypes/DLListBase/DLListBase.H index a7ce412c77..6ee464d7b8 100644 --- a/src/OpenFOAM/containers/LinkedLists/linkTypes/DLListBase/DLListBase.H +++ b/src/OpenFOAM/containers/LinkedLists/linkTypes/DLListBase/DLListBase.H @@ -81,15 +81,6 @@ private: label nElmts_; - // Private Member Functions - - //- Disallow default bitwise copy construct - DLListBase(const DLListBase&) = delete; - - //- Disallow default bitwise assignment - void operator=(const DLListBase&) = delete; - - public: // Forward declaration of STL iterators @@ -112,6 +103,9 @@ public: //- Construct given initial entry inline DLListBase(link*); + //- Disallow default bitwise copy construct + DLListBase(const DLListBase&) = delete; + //- Destructor ~DLListBase(); @@ -177,6 +171,12 @@ public: inline void transfer(DLListBase&); + // Member Operators + + //- Disallow default bitwise assignment + void operator=(const DLListBase&) = delete; + + // STL iterator //- An STL-conforming iterator diff --git a/src/OpenFOAM/containers/LinkedLists/linkTypes/SLListBase/SLListBase.H b/src/OpenFOAM/containers/LinkedLists/linkTypes/SLListBase/SLListBase.H index a086a9293d..ebcd071dcb 100644 --- a/src/OpenFOAM/containers/LinkedLists/linkTypes/SLListBase/SLListBase.H +++ b/src/OpenFOAM/containers/LinkedLists/linkTypes/SLListBase/SLListBase.H @@ -78,14 +78,6 @@ private: //- Number of elements in in list label nElmts_; - // Private Member Functions - - //- Disallow default bitwise copy construct - SLListBase(const SLListBase&) = delete; - - //- Disallow default bitwise assignment - void operator=(const SLListBase&) = delete; - public: @@ -106,6 +98,9 @@ public: //- Construct given initial entry inline SLListBase(link*); + //- Disallow default bitwise copy construct + SLListBase(const SLListBase&) = delete; + //- Destructor ~SLListBase(); @@ -158,6 +153,13 @@ public: // and annul the argument list. inline void transfer(SLListBase&); + + // Member Operators + + //- Disallow default bitwise assignment + void operator=(const SLListBase&) = delete; + + // STL iterator //- An STL-conforming iterator diff --git a/src/OpenFOAM/containers/Lists/Histogram/Histogram.H b/src/OpenFOAM/containers/Lists/Histogram/Histogram.H index d8e13c4e3d..0e318e7cdd 100644 --- a/src/OpenFOAM/containers/Lists/Histogram/Histogram.H +++ b/src/OpenFOAM/containers/Lists/Histogram/Histogram.H @@ -66,12 +66,6 @@ class Histogram void count(const List& bins, const List& l); - //- Disallow default bitwise copy construct - Histogram(const Histogram&) = delete; - - //- Disallow default bitwise assignment - void operator=(const Histogram&) = delete; - public: @@ -89,8 +83,11 @@ public: const List& l ); + //- Disallow default bitwise copy construct + Histogram(const Histogram&) = delete; - // Access + + // Member Functions //- Return the counts per bin inline const labelList& counts() const @@ -111,6 +108,12 @@ public: { return nHigh_; } + + + // Member Operators + + //- Disallow default bitwise assignment + void operator=(const Histogram&) = delete; }; diff --git a/src/OpenFOAM/containers/Lists/IndirectList/IndirectList.H b/src/OpenFOAM/containers/Lists/IndirectList/IndirectList.H index 51e088667b..54de934da5 100644 --- a/src/OpenFOAM/containers/Lists/IndirectList/IndirectList.H +++ b/src/OpenFOAM/containers/Lists/IndirectList/IndirectList.H @@ -59,15 +59,6 @@ class IndirectListAddressing List