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:
Mark Olesen
2018-05-30 12:03:17 +02:00
parent 6b6b36afd3
commit f9fe71815a
976 changed files with 3606 additions and 3419 deletions

View File

@ -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;

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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: