Commit f9fe7181 authored by Mark Olesen's avatar Mark Olesen
Browse files

STYLE: consistent use of '= delete' for removed constructors/assignments

- make the purpose more explicit, and reduces some work for the
  compiler as well.
parent 6b6b36af
......@@ -70,11 +70,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
relaxationModel(const relaxationModel&);
//- No copy construct
relaxationModel(const relaxationModel&) = delete;
//- Disallow default bitwise assignment
void operator=(const relaxationModel&);
//- No copy assignment
void operator=(const relaxationModel&) = delete;
public:
......
......@@ -59,11 +59,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
searchableBoxFeatures(const searchableBoxFeatures&);
//- No copy construct
searchableBoxFeatures(const searchableBoxFeatures&) = delete;
//- Disallow default bitwise assignment
void operator=(const searchableBoxFeatures&);
//- No copy assignment
void operator=(const searchableBoxFeatures&) = delete;
public:
......
......@@ -63,11 +63,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
searchablePlateFeatures(const searchablePlateFeatures&);
//- No copy construct
searchablePlateFeatures(const searchablePlateFeatures&) = delete;
//- Disallow default bitwise assignment
void operator=(const searchablePlateFeatures&);
//- No copy assignment
void operator=(const searchablePlateFeatures&) = delete;
public:
......
......@@ -60,11 +60,11 @@ class searchableSurfaceFeatures
// Private Member Functions
//- Disallow default bitwise copy construct
searchableSurfaceFeatures(const searchableSurfaceFeatures&);
//- No copy construct
searchableSurfaceFeatures(const searchableSurfaceFeatures&) = delete;
//- Disallow default bitwise assignment
void operator=(const searchableSurfaceFeatures&);
//- No copy assignment
void operator=(const searchableSurfaceFeatures&) = delete;
public:
......
......@@ -61,11 +61,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
triSurfaceMeshFeatures(const triSurfaceMeshFeatures&);
//- No copy construct
triSurfaceMeshFeatures(const triSurfaceMeshFeatures&) = delete;
//- Disallow default bitwise assignment
void operator=(const triSurfaceMeshFeatures&);
//- No copy assignment
void operator=(const triSurfaceMeshFeatures&) = delete;
public:
......
......@@ -199,11 +199,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
CV2D(const CV2D&);
//- No copy construct
CV2D(const CV2D&) = delete;
//- Disallow default bitwise assignment
void operator=(const CV2D&);
//- No copy assignment
void operator=(const CV2D&) = delete;
//- Insert point and return it's index
......
......@@ -90,11 +90,11 @@ class shortEdgeFilter2D
labelList& patchSizes
) const;
//- Disallow default bitwise copy construct
shortEdgeFilter2D(const shortEdgeFilter2D&);
//- No copy construct
shortEdgeFilter2D(const shortEdgeFilter2D&) = delete;
//- Disallow default bitwise assignment
void operator=(const shortEdgeFilter2D&);
//- No copy assignment
void operator=(const shortEdgeFilter2D&) = delete;
public:
......
......@@ -76,10 +76,10 @@ class mergePolyMesh
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
mergePolyMesh(const mergePolyMesh&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const mergePolyMesh&) = delete;
......
......@@ -60,10 +60,10 @@ class mirrorFvMesh
// Private Member Functions
//- Disallow copy construct
//- No copy construct
mirrorFvMesh(const mirrorFvMesh&) = delete;
//- Disallow copy assignment
//- No copy assignment
void operator=(const mirrorFvMesh&) = delete;
......
......@@ -168,11 +168,11 @@ class meshDualiser
boolList& donePFaces // pFaces visited
) const;
//- Disallow default bitwise copy construct
meshDualiser(const meshDualiser&);
//- No copy construct
meshDualiser(const meshDualiser&) = delete;
//- Disallow default bitwise assignment
void operator=(const meshDualiser&);
//- No copy assignment
void operator=(const meshDualiser&) = delete;
public:
......
......@@ -71,11 +71,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
dimFieldDecomposer(const dimFieldDecomposer&);
//- No copy construct
dimFieldDecomposer(const dimFieldDecomposer&) = delete;
//- Disallow default bitwise assignment
void operator=(const dimFieldDecomposer&);
//- No copy assignment
void operator=(const dimFieldDecomposer&) = delete;
public:
......
......@@ -252,11 +252,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
faFieldDecomposer(const faFieldDecomposer&);
//- No copy construct
faFieldDecomposer(const faFieldDecomposer&) = delete;
//- Disallow default bitwise assignment
void operator=(const faFieldDecomposer&);
//- No copy assignment
void operator=(const faFieldDecomposer&) = delete;
public:
......
......@@ -68,11 +68,11 @@ class lagrangianFieldDecomposer
// Private Member Functions
//- Disallow default bitwise copy construct
lagrangianFieldDecomposer(const lagrangianFieldDecomposer&);
//- No copy construct
lagrangianFieldDecomposer(const lagrangianFieldDecomposer&) = delete;
//- Disallow default bitwise assignment
void operator=(const lagrangianFieldDecomposer&);
//- No copy assignment
void operator=(const lagrangianFieldDecomposer&) = delete;
public:
......
......@@ -125,11 +125,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
pointFieldDecomposer(const pointFieldDecomposer&);
//- No copy construct
pointFieldDecomposer(const pointFieldDecomposer&) = delete;
//- Disallow default bitwise assignment
void operator=(const pointFieldDecomposer&);
//- No copy assignment
void operator=(const pointFieldDecomposer&) = delete;
public:
......
......@@ -80,11 +80,11 @@ class faFieldReconstructor
// Private Member Functions
//- Disallow default bitwise copy construct
faFieldReconstructor(const faFieldReconstructor&);
//- No copy construct
faFieldReconstructor(const faFieldReconstructor&) = delete;
//- Disallow default bitwise assignment
void operator=(const faFieldReconstructor&);
//- No copy assignment
void operator=(const faFieldReconstructor&) = delete;
public:
......
......@@ -84,11 +84,11 @@ class processorFaMeshes
//- Read all meshes
void read();
//- Disallow default bitwise copy construct
processorFaMeshes(const processorFaMeshes&);
//- No copy construct
processorFaMeshes(const processorFaMeshes&) = delete;
//- Disallow default bitwise assignment
void operator=(const processorFaMeshes&);
//- No copy assignment
void operator=(const processorFaMeshes&) = delete;
public:
......
......@@ -80,11 +80,11 @@ class parFvFieldReconstructor
//- Construct per-patch addressing
void createPatchFaceMaps();
//- Disallow default bitwise copy construct
parFvFieldReconstructor(const parFvFieldReconstructor&);
//- No copy construct
parFvFieldReconstructor(const parFvFieldReconstructor&) = delete;
//- Disallow default bitwise assignment
void operator=(const parFvFieldReconstructor&);
//- No copy assignment
void operator=(const parFvFieldReconstructor&) = delete;
public:
......
......@@ -77,11 +77,11 @@ class parLagrangianRedistributor
// Private Member Functions
//- Disallow default bitwise copy construct
parLagrangianRedistributor(const parLagrangianRedistributor&);
//- No copy construct
parLagrangianRedistributor(const parLagrangianRedistributor&) = delete;
//- Disallow default bitwise assignment
void operator=(const parLagrangianRedistributor&);
//- No copy assignment
void operator=(const parLagrangianRedistributor&) = delete;
public:
......
......@@ -53,11 +53,14 @@ class passivePositionParticleCloud
{
// Private Member Functions
//- Disallow default bitwise copy construct
passivePositionParticleCloud(const passivePositionParticleCloud&);
//- No copy construct
passivePositionParticleCloud
(
const passivePositionParticleCloud&
) = delete;
//- Disallow default bitwise assignment
void operator=(const passivePositionParticleCloud&);
//- No copy assignment
void operator=(const passivePositionParticleCloud&) = delete;
public:
......
......@@ -92,10 +92,10 @@ class lagrangianWriter
void writeVerts();
//- Disallow default bitwise copy construct
//- No copy construct
lagrangianWriter(const lagrangianWriter&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const lagrangianWriter&) = delete;
......
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