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:
@ -98,11 +98,11 @@ private:
|
||||
|
||||
// Private member functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
cellVolumeWeightMethod(const cellVolumeWeightMethod&);
|
||||
//- No copy construct
|
||||
cellVolumeWeightMethod(const cellVolumeWeightMethod&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const cellVolumeWeightMethod&);
|
||||
//- No copy assignment
|
||||
void operator=(const cellVolumeWeightMethod&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -72,11 +72,14 @@ protected:
|
||||
label& startSeedI
|
||||
);
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
correctedCellVolumeWeightMethod(const correctedCellVolumeWeightMethod&);
|
||||
//- No copy construct
|
||||
correctedCellVolumeWeightMethod
|
||||
(
|
||||
const correctedCellVolumeWeightMethod&
|
||||
) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const correctedCellVolumeWeightMethod&);
|
||||
//- No copy assignment
|
||||
void operator=(const correctedCellVolumeWeightMethod&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -103,11 +103,11 @@ private:
|
||||
|
||||
// Private member functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
directMethod(const directMethod&);
|
||||
//- No copy construct
|
||||
directMethod(const directMethod&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const directMethod&);
|
||||
//- No copy assignment
|
||||
void operator=(const directMethod&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -111,11 +111,11 @@ protected:
|
||||
const List<DynamicList<label>>& tgtToSrc
|
||||
) const;
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
mapNearestMethod(const mapNearestMethod&);
|
||||
//- No copy construct
|
||||
mapNearestMethod(const mapNearestMethod&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const mapNearestMethod&);
|
||||
//- No copy assignment
|
||||
void operator=(const mapNearestMethod&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -114,11 +114,11 @@ private:
|
||||
|
||||
// Private member functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
meshToMeshMethod(const meshToMeshMethod&);
|
||||
//- No copy construct
|
||||
meshToMeshMethod(const meshToMeshMethod&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const meshToMeshMethod&);
|
||||
//- No copy assignment
|
||||
void operator=(const meshToMeshMethod&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -282,11 +282,11 @@ private:
|
||||
) const;
|
||||
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
meshToMesh(const meshToMesh&);
|
||||
//- No copy construct
|
||||
meshToMesh(const meshToMesh&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const meshToMesh&);
|
||||
//- No copy assignment
|
||||
void operator=(const meshToMesh&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -147,11 +147,11 @@ protected:
|
||||
|
||||
private:
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
patchProbes(const patchProbes&);
|
||||
//- No copy construct
|
||||
patchProbes(const patchProbes&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const patchProbes&);
|
||||
//- No copy assignment
|
||||
void operator=(const patchProbes&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -227,10 +227,10 @@ private:
|
||||
template<class Type>
|
||||
void sampleAndWriteSurfaceFields(const fieldGroup<Type>&);
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
//- No copy construct
|
||||
probes(const probes&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const probes&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -240,8 +240,10 @@ class sampledSets
|
||||
void sampleAndWrite(fieldGroup<Type>& fields);
|
||||
|
||||
|
||||
//- Disallow default bitwise copy construct and assignment
|
||||
//- No copy construct
|
||||
sampledSets(const sampledSets&) = delete;
|
||||
|
||||
//- No copy assignment
|
||||
void operator=(const sampledSets&) = delete;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user