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
......@@ -26,7 +26,7 @@ License
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class KeyType, class DataType>
void Foam::PrintTable<KeyType, DataType>::add
inline void Foam::PrintTable<KeyType, DataType>::add
(
const KeyType& K,
const DataType& D
......@@ -35,8 +35,4 @@ void Foam::PrintTable<KeyType, DataType>::add
table_.set(K, D);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //
......@@ -177,11 +177,14 @@ class backgroundMeshDecomposition
//- Build the surface patch and search tree
void buildPatchAndTree();
//- Disallow default bitwise copy construct
backgroundMeshDecomposition(const backgroundMeshDecomposition&);
//- No copy construct
backgroundMeshDecomposition
(
const backgroundMeshDecomposition&
) = delete;
//- Disallow default bitwise assignment
void operator=(const backgroundMeshDecomposition&);
//- No copy assignment
void operator=(const backgroundMeshDecomposition&) = delete;
public:
......
......@@ -61,11 +61,11 @@ class cellAspectRatioControl
// Private Member Functions
//- Disallow default bitwise copy construct
cellAspectRatioControl(const cellAspectRatioControl&);
//- No copy construct
cellAspectRatioControl(const cellAspectRatioControl&) = delete;
//- Disallow default bitwise assignment
void operator=(const cellAspectRatioControl&);
//- No copy assignment
void operator=(const cellAspectRatioControl&) = delete;
public:
......
......@@ -85,11 +85,11 @@ class cellShapeControl
// Private Member Functions
//- Disallow default bitwise copy construct
cellShapeControl(const cellShapeControl&);
//- No copy construct
cellShapeControl(const cellShapeControl&) = delete;
//- Disallow default bitwise assignment
void operator=(const cellShapeControl&);
//- No copy assignment
void operator=(const cellShapeControl&) = delete;
public:
......
......@@ -83,11 +83,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
cellShapeControlMesh(const cellShapeControlMesh&);
//- No copy construct
cellShapeControlMesh(const cellShapeControlMesh&) = delete;
//- Disallow default bitwise assignment
void operator=(const cellShapeControlMesh&);
//- No copy assignment
void operator=(const cellShapeControlMesh&) = delete;
public:
......
......@@ -71,11 +71,14 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
cellSizeAndAlignmentControl(const cellSizeAndAlignmentControl&);
//- No copy construct
cellSizeAndAlignmentControl
(
const cellSizeAndAlignmentControl&
) = delete;
//- Disallow default bitwise assignment
void operator=(const cellSizeAndAlignmentControl&);
//- No copy assignment
void operator=(const cellSizeAndAlignmentControl&) = delete;
public:
......
......@@ -68,11 +68,14 @@ class cellSizeAndAlignmentControls
label& maxPriority
) const;
//- Disallow default bitwise copy construct
cellSizeAndAlignmentControls(const cellSizeAndAlignmentControls&);
//- No copy construct
cellSizeAndAlignmentControls
(
const cellSizeAndAlignmentControls&
) = delete;
//- Disallow default bitwise assignment
void operator=(const cellSizeAndAlignmentControls&);
//- No copy assignment
void operator=(const cellSizeAndAlignmentControls&) = delete;
public:
......
......@@ -63,11 +63,11 @@ class fileControl
// Private Member Functions
//- Disallow default bitwise copy construct
fileControl(const fileControl&);
//- No copy construct
fileControl(const fileControl&) = delete;
//- Disallow default bitwise assignment
void operator=(const fileControl&);
//- No copy assignment
void operator=(const fileControl&) = delete;
public:
......
......@@ -88,11 +88,11 @@ class searchableSurfaceControl
// const vectorField& ptNormals
// ) const;
//- Disallow default bitwise copy construct
searchableSurfaceControl(const searchableSurfaceControl&);
//- No copy construct
searchableSurfaceControl(const searchableSurfaceControl&) = delete;
//- Disallow default bitwise assignment
void operator=(const searchableSurfaceControl&);
//- No copy assignment
void operator=(const searchableSurfaceControl&) = delete;
public:
......
......@@ -99,11 +99,11 @@ class controlMeshRefinement
pointHit findDiscontinuities(const linePointRef& l) const;
//- Disallow default bitwise copy construct
controlMeshRefinement(const controlMeshRefinement&);
//- No copy construct
controlMeshRefinement(const controlMeshRefinement&) = delete;
//- Disallow default bitwise assignment
void operator=(const controlMeshRefinement&);
//- No copy assignment
void operator=(const controlMeshRefinement&) = delete;
public:
......
......@@ -91,11 +91,11 @@ class smoothAlignmentSolver
triad& t
) const;
//- Disallow default bitwise copy construct
smoothAlignmentSolver(const smoothAlignmentSolver&);
//- No copy construct
smoothAlignmentSolver(const smoothAlignmentSolver&) = delete;
//- Disallow default bitwise assignment
void operator=(const smoothAlignmentSolver&);
//- No copy assignment
void operator=(const smoothAlignmentSolver&) = delete;
public:
......
......@@ -110,11 +110,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
cellSizeFunction(const cellSizeFunction&);
//- No copy construct
cellSizeFunction(const cellSizeFunction&) = delete;
//- Disallow default bitwise assignment
void operator=(const cellSizeFunction&);
//- No copy assignment
void operator=(const cellSizeFunction&) = delete;
public:
......
......@@ -67,11 +67,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
cellSizeCalculationType(const cellSizeCalculationType&);
//- No copy construct
cellSizeCalculationType(const cellSizeCalculationType&) = delete;
//- Disallow default bitwise assignment
void operator=(const cellSizeCalculationType&);
//- No copy assignment
void operator=(const cellSizeCalculationType&) = delete;
public:
......
......@@ -75,11 +75,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
surfaceCellSizeFunction(const surfaceCellSizeFunction&);
//- No copy construct
surfaceCellSizeFunction(const surfaceCellSizeFunction&) = delete;
//- Disallow default bitwise assignment
void operator=(const surfaceCellSizeFunction&);
//- No copy assignment
void operator=(const surfaceCellSizeFunction&) = delete;
public:
......
......@@ -850,11 +850,11 @@ private:
void writePointPairs(const fileName& fName) const;
//- Disallow default bitwise copy construct
conformalVoronoiMesh(const conformalVoronoiMesh&);
//- No copy construct
conformalVoronoiMesh(const conformalVoronoiMesh&) = delete;
//- Disallow default bitwise assignment
void operator=(const conformalVoronoiMesh&);
//- No copy assignment
void operator=(const conformalVoronoiMesh&) = delete;
public:
......
......@@ -133,11 +133,11 @@ class featurePointConformer
//- Create the points that will conform to the feature
void createFeaturePoints(DynamicList<Vb>& pts);
//- Disallow default bitwise copy construct
featurePointConformer(const featurePointConformer&);
//- No copy construct
featurePointConformer(const featurePointConformer&) = delete;
//- Disallow default bitwise assignment
void operator=(const featurePointConformer&);
//- No copy assignment
void operator=(const featurePointConformer&) = delete;
public:
......
......@@ -125,11 +125,11 @@ class conformationSurfaces
label& featureIndex
);
//- Disallow default bitwise copy construct
conformationSurfaces(const conformationSurfaces&);
//- No copy construct
conformationSurfaces(const conformationSurfaces&) = delete;
//- Disallow default bitwise assignment
void operator=(const conformationSurfaces&);
//- No copy assignment
void operator=(const conformationSurfaces&) = delete;
public:
......
......@@ -209,11 +209,11 @@ class cvControls
// Private Member Functions
//- Disallow default bitwise copy construct
cvControls(const cvControls&);
//- No copy construct
cvControls(const cvControls&) = delete;
//- Disallow default bitwise assignment
void operator=(const cvControls&);
//- No copy assignment
void operator=(const cvControls&) = delete;
public:
......
......@@ -68,11 +68,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
faceAreaWeightModel(const faceAreaWeightModel&);
//- No copy construct
faceAreaWeightModel(const faceAreaWeightModel&) = delete;
//- Disallow default bitwise assignment
void operator=(const faceAreaWeightModel&);
//- No copy assignment
void operator=(const faceAreaWeightModel&) = delete;
public:
......
......@@ -87,11 +87,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
initialPointsMethod(const initialPointsMethod&);
//- No copy construct
initialPointsMethod(const initialPointsMethod&) = delete;
//- Disallow default bitwise assignment
void operator=(const initialPointsMethod&);
//- No copy assignment
void operator=(const initialPointsMethod&) = delete;
public:
......
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