mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: consistent use of '= delete' for removed constructors/assignments
- make the purpose more explicit, and reduces some work for the compiler as well.
This commit is contained in:
@ -88,8 +88,10 @@ class decompositionInformation
|
||||
const label nDomains
|
||||
);
|
||||
|
||||
//- Disallow default bitwise copy construct and assignment
|
||||
//- No copy construct
|
||||
decompositionInformation(const decompositionInformation&) = delete;
|
||||
|
||||
//- No copy assignment
|
||||
void operator=(const decompositionInformation&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -229,11 +229,11 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
fvFieldDecomposer(const fvFieldDecomposer&);
|
||||
//- No copy construct
|
||||
fvFieldDecomposer(const fvFieldDecomposer&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const fvFieldDecomposer&);
|
||||
//- No copy assignment
|
||||
void operator=(const fvFieldDecomposer&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -292,11 +292,11 @@ private:
|
||||
void distributeFields(const mapDistribute& map);
|
||||
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
distributedTriSurfaceMesh(const distributedTriSurfaceMesh&);
|
||||
//- No copy construct
|
||||
distributedTriSurfaceMesh(const distributedTriSurfaceMesh&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const distributedTriSurfaceMesh&);
|
||||
//- No copy assignment
|
||||
void operator=(const distributedTriSurfaceMesh&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -77,11 +77,11 @@ class fvFieldReconstructor
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
fvFieldReconstructor(const fvFieldReconstructor&);
|
||||
//- No copy construct
|
||||
fvFieldReconstructor(const fvFieldReconstructor&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const fvFieldReconstructor&);
|
||||
//- No copy assignment
|
||||
void operator=(const fvFieldReconstructor&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -74,11 +74,11 @@ class pointFieldReconstructor
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
pointFieldReconstructor(const pointFieldReconstructor&);
|
||||
//- No copy construct
|
||||
pointFieldReconstructor(const pointFieldReconstructor&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const pointFieldReconstructor&);
|
||||
//- No copy assignment
|
||||
void operator=(const pointFieldReconstructor&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -80,11 +80,11 @@ class processorMeshes
|
||||
//- Read all meshes
|
||||
void read();
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
processorMeshes(const processorMeshes&);
|
||||
//- No copy construct
|
||||
processorMeshes(const processorMeshes&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const processorMeshes&);
|
||||
//- No copy assignment
|
||||
void operator=(const processorMeshes&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user