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

@ -120,10 +120,10 @@ class Curle
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
Curle(const Curle&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const Curle&) = delete;

View File

@ -97,10 +97,10 @@ protected:
//- File header information
virtual void writeFileHeader(Ostream& os) const;
//- Disallow default bitwise copy construct
//- No copy construct
DESModelRegions(const DESModelRegions&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const DESModelRegions&) = delete;

View File

@ -78,11 +78,11 @@ class XiReactionRate
{
// Private member functions
//- Disallow default bitwise copy construct
XiReactionRate(const XiReactionRate&);
//- No copy construct
XiReactionRate(const XiReactionRate&) = delete;
//- Disallow default bitwise assignment
void operator=(const XiReactionRate&);
//- No copy assignment
void operator=(const XiReactionRate&) = delete;
public:

View File

@ -135,10 +135,10 @@ class ddt2
int process(const word& inputName);
//- Disallow default bitwise copy construct
//- No copy construct
ddt2(const ddt2&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const ddt2&) = delete;

View File

@ -288,10 +288,10 @@ private:
//- Perform the coupling with necessary initialization etc.
void performCoupling();
//- Disallow default bitwise copy constructor
//- No copy construct
externalCoupled(const externalCoupled&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const externalCoupled&) = delete;

View File

@ -238,11 +238,11 @@ protected:
const label globalFaceI
) const;
//- Disallow default bitwise copy construct
extractEulerianParticles(const extractEulerianParticles&);
//- No copy construct
extractEulerianParticles(const extractEulerianParticles&) = delete;
//- Disallow default bitwise assignment
void operator=(const extractEulerianParticles&);
//- No copy assignment
void operator=(const extractEulerianParticles&) = delete;
public:

View File

@ -274,10 +274,10 @@ protected:
void readAveragingProperties();
//- Disallow default bitwise copy construct
//- No copy construct
fieldAverage(const fieldAverage&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const fieldAverage&) = delete;

View File

@ -84,11 +84,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
fieldExpression(const fieldExpression&);
//- No copy construct
fieldExpression(const fieldExpression&) = delete;
//- Disallow default bitwise assignment
void operator=(const fieldExpression&);
//- No copy assignment
void operator=(const fieldExpression&) = delete;
public:

View File

@ -150,10 +150,10 @@ protected:
//- Output file header information
virtual void writeFileHeader(Ostream& os);
//- Disallow default bitwise copy construct
//- No copy construct
fieldMinMax(const fieldMinMax&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const fieldMinMax&) = delete;
//- Calculate the field min/max

View File

@ -98,11 +98,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
fieldsExpression(const fieldsExpression&);
//- No copy construct
fieldsExpression(const fieldsExpression&) = delete;
//- Disallow default bitwise assignment
void operator=(const fieldsExpression&);
//- No copy assignment
void operator=(const fieldsExpression&) = delete;
public:

View File

@ -245,10 +245,10 @@ protected:
//- Specialized write for surfaces
bool surfaceModeWrite();
//- Disallow default bitwise copy construct
//- No copy construct
fluxSummary(const fluxSummary&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const fluxSummary&) = delete;

View File

@ -144,10 +144,10 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
heatTransferCoeff(const heatTransferCoeff&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const heatTransferCoeff&) = delete;

View File

@ -97,10 +97,10 @@ class ReynoldsAnalogy
{
// Private Member Functions
//- Disallow copy construct
//- No copy construct
ReynoldsAnalogy(const ReynoldsAnalogy&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const ReynoldsAnalogy&) = delete;

View File

@ -83,10 +83,10 @@ class fixedReferenceTemperature
{
// Private Member Functions
//- Disallow copy construct
//- No copy construct
fixedReferenceTemperature(const fixedReferenceTemperature&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const fixedReferenceTemperature&) = delete;

View File

@ -64,10 +64,10 @@ class heatTransferCoeffModel
// Private Member Functions
//- Disallow copy construct
//- No copy construct
heatTransferCoeffModel(const heatTransferCoeffModel&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const heatTransferCoeffModel&) = delete;

View File

@ -81,10 +81,10 @@ class localReferenceTemperature
{
// Private Member Functions
//- Disallow copy construct
//- No copy construct
localReferenceTemperature(const localReferenceTemperature&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const localReferenceTemperature&) = delete;

View File

@ -125,11 +125,11 @@ class histogram
const scalarField& absoluteValues
) const;
//- Disallow default bitwise copy construct
histogram(const histogram&);
//- No copy construct
histogram(const histogram&) = delete;
//- Disallow default bitwise assignment
void operator=(const histogram&);
//- No copy assignment
void operator=(const histogram&) = delete;
public:

View File

@ -103,10 +103,10 @@ class mapFields
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
mapFields(const mapFields&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const mapFields&) = delete;
//- Helper function to create the mesh-to-mesh interpolation

View File

@ -175,11 +175,11 @@ protected:
private:
//- Disallow default bitwise copy construct
nearWallFields(const nearWallFields&);
//- No copy construct
nearWallFields(const nearWallFields&) = delete;
//- Disallow default bitwise assignment
void operator=(const nearWallFields&);
//- No copy assignment
void operator=(const nearWallFields&) = delete;
public:

View File

@ -133,10 +133,10 @@ protected:
const List<DynamicList<label>>& addr
);
//- Disallow default bitwise copy construct
//- No copy construct
particleDistribution(const particleDistribution&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const particleDistribution&) = delete;

View File

@ -85,11 +85,11 @@ class processorField
Switch log_;
// Private member functions
//- Disallow default bitwise copy construct
processorField(const processorField&);
//- No copy construct
processorField(const processorField&) = delete;
//- Disallow default bitwise assignment
void operator=(const processorField&);
//- No copy assignment
void operator=(const processorField&) = delete;
public:

View File

@ -131,11 +131,14 @@ class reactionsSensitivityAnalysis
void writeSpeciesRR();
//- Disallow default bitwise copy construct
reactionsSensitivityAnalysis(const reactionsSensitivityAnalysis&);
//- No copy construct
reactionsSensitivityAnalysis
(
const reactionsSensitivityAnalysis&
) = delete;
//- Disallow default bitwise assignment
void operator=(const reactionsSensitivityAnalysis&);
//- No copy assignment
void operator=(const reactionsSensitivityAnalysis&) = delete;
public:

View File

@ -103,11 +103,11 @@ private:
// Private member functions
//- Disallow default bitwise copy construct
readFields(const readFields&);
//- No copy construct
readFields(const readFields&) = delete;
//- Disallow default bitwise assignment
void operator=(const readFields&);
//- No copy assignment
void operator=(const readFields&) = delete;
public:

View File

@ -279,11 +279,11 @@ class regionSizeDistribution
const coordSet& coords // graph data for bins
) const;
//- Disallow default bitwise copy construct
regionSizeDistribution(const regionSizeDistribution&);
//- No copy construct
regionSizeDistribution(const regionSizeDistribution&) = delete;
//- Disallow default bitwise assignment
void operator=(const regionSizeDistribution&);
//- No copy assignment
void operator=(const regionSizeDistribution&) = delete;
public:

View File

@ -138,10 +138,10 @@ class streamLine
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
streamLine(const streamLine&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const streamLine&) = delete;

View File

@ -53,11 +53,11 @@ class streamLineParticleCloud
{
// Private Member Functions
//- Disallow default bitwise copy construct
streamLineParticleCloud(const streamLineParticleCloud&);
//- No copy construct
streamLineParticleCloud(const streamLineParticleCloud&) = delete;
//- Disallow default bitwise assignment
void operator=(const streamLineParticleCloud&);
//- No copy assignment
void operator=(const streamLineParticleCloud&) = delete;
public:

View File

@ -117,11 +117,11 @@ private:
// Private member functions
//- Disallow default bitwise copy construct
surfaceInterpolate(const surfaceInterpolate&);
//- No copy construct
surfaceInterpolate(const surfaceInterpolate&) = delete;
//- Disallow default bitwise assignment
void operator=(const surfaceInterpolate&);
//- No copy assignment
void operator=(const surfaceInterpolate&) = delete;
public:

View File

@ -184,10 +184,10 @@ private:
// Private member functions
//- Disallow default bitwise copy construct
//- No copy construct
turbulenceFields(const turbulenceFields&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const turbulenceFields&) = delete;

View File

@ -129,10 +129,10 @@ protected:
//- Output file header information
virtual void writeFileHeader(Ostream& os) const;
//- Disallow default bitwise copy construct
//- No copy construct
valueAverage(const valueAverage&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const valueAverage&) = delete;

View File

@ -125,10 +125,10 @@ class wallBoundedStreamLine
{
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
wallBoundedStreamLine(const wallBoundedStreamLine&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const wallBoundedStreamLine&) = delete;

View File

@ -53,14 +53,14 @@ class wallBoundedStreamLineParticleCloud
{
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
wallBoundedStreamLineParticleCloud
(
const wallBoundedStreamLineParticleCloud&
);
) = delete;
//- Disallow default bitwise assignment
void operator=(const wallBoundedStreamLineParticleCloud&);
//- No copy assignment
void operator=(const wallBoundedStreamLineParticleCloud&) = delete;
public:

View File

@ -121,11 +121,11 @@ private:
// Private member functions
//- Disallow default bitwise copy construct
wallHeatFlux(const wallHeatFlux&);
//- No copy construct
wallHeatFlux(const wallHeatFlux&) = delete;
//- Disallow default bitwise assignment
void operator=(const wallHeatFlux&);
//- No copy assignment
void operator=(const wallHeatFlux&) = delete;
public:

View File

@ -127,11 +127,11 @@ private:
// Private member functions
//- Disallow default bitwise copy construct
wallShearStress(const wallShearStress&);
//- No copy construct
wallShearStress(const wallShearStress&) = delete;
//- Disallow default bitwise assignment
void operator=(const wallShearStress&);
//- No copy assignment
void operator=(const wallShearStress&) = delete;
public:

View File

@ -78,11 +78,11 @@ class writeCellCentres
{
// Private member functions
//- Disallow default bitwise copy construct
writeCellCentres(const writeCellCentres&);
//- No copy construct
writeCellCentres(const writeCellCentres&) = delete;
//- Disallow default bitwise assignment
void operator=(const writeCellCentres&);
//- No copy assignment
void operator=(const writeCellCentres&) = delete;
public:

View File

@ -77,11 +77,11 @@ class writeCellVolumes
{
// Private member functions
//- Disallow default bitwise copy construct
writeCellVolumes(const writeCellVolumes&);
//- No copy construct
writeCellVolumes(const writeCellVolumes&) = delete;
//- Disallow default bitwise assignment
void operator=(const writeCellVolumes&);
//- No copy assignment
void operator=(const writeCellVolumes&) = delete;
public:

View File

@ -93,11 +93,11 @@ class yPlus
//- File header information
virtual void writeFileHeader(Ostream& os) const;
//- Disallow default bitwise copy construct
yPlus(const yPlus&);
//- No copy construct
yPlus(const yPlus&) = delete;
//- Disallow default bitwise assignment
void operator=(const yPlus&);
//- No copy assignment
void operator=(const yPlus&) = delete;
public:

View File

@ -126,10 +126,10 @@ class zeroGradient
int process(const word& inputName);
//- Disallow default bitwise copy construct
//- No copy construct
zeroGradient(const zeroGradient&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const zeroGradient&) = delete;

View File

@ -172,11 +172,11 @@ class forceCoeffs
// Private Member Functions
//- Disallow default bitwise copy construct
forceCoeffs(const forceCoeffs&);
//- No copy construct
forceCoeffs(const forceCoeffs&) = delete;
//- Disallow default bitwise assignment
void operator=(const forceCoeffs&);
//- No copy assignment
void operator=(const forceCoeffs&) = delete;
protected:

View File

@ -346,11 +346,11 @@ protected:
//- Write binned data
void writeBins();
//- Disallow default bitwise copy construct
forces(const forces&);
//- No copy construct
forces(const forces&) = delete;
//- Disallow default bitwise assignment
void operator=(const forces&);
//- No copy assignment
void operator=(const forces&) = delete;
public:

View File

@ -95,11 +95,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
fieldVisualisationBase(const fieldVisualisationBase&);
//- No copy construct
fieldVisualisationBase(const fieldVisualisationBase&) = delete;
//- Disallow default bitwise assignment
void operator=(const fieldVisualisationBase&);
//- No copy assignment
void operator=(const fieldVisualisationBase&) = delete;
protected:

View File

@ -59,11 +59,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
functionObjectBase(const functionObjectBase&);
//- No copy construct
functionObjectBase(const functionObjectBase&) = delete;
//- Disallow default bitwise assignment
void operator=(const functionObjectBase&);
//- No copy assignment
void operator=(const functionObjectBase&) = delete;
protected:

View File

@ -60,10 +60,10 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
functionObjectCloud(const functionObjectCloud&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const functionObjectCloud&) = delete;

View File

@ -60,10 +60,10 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
functionObjectLine(const functionObjectLine&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const functionObjectLine&) = delete;

View File

@ -61,10 +61,10 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
functionObjectSurface(const functionObjectSurface&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const functionObjectSurface&) = delete;

View File

@ -82,11 +82,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
geometryBase(const geometryBase&);
//- No copy construct
geometryBase(const geometryBase&) = delete;
//- Disallow default bitwise assignment
void operator=(const geometryBase&);
//- No copy assignment
void operator=(const geometryBase&) = delete;
protected:

View File

@ -60,10 +60,10 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
geometrySurface(const geometrySurface&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const geometrySurface&) = delete;

View File

@ -78,10 +78,10 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
pathline(const pathline&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const pathline&) = delete;

View File

@ -76,10 +76,10 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
pointData(const pointData&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const pointData&) = delete;

View File

@ -111,11 +111,11 @@ class scene
const bool visible
) const;
//- Disallow default bitwise copy construct
scene(const scene&);
//- No copy construct
scene(const scene&) = delete;
//- Disallow default bitwise assignment
void operator=(const scene&);
//- No copy assignment
void operator=(const scene&) = delete;
protected:

View File

@ -81,10 +81,10 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
surface(const surface&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const surface&) = delete;

View File

@ -77,10 +77,10 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
text(const text&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const text&) = delete;

View File

@ -112,11 +112,11 @@ private:
// Private member functions
//- Disallow default bitwise copy construct
cloudInfo(const cloudInfo&);
//- No copy construct
cloudInfo(const cloudInfo&) = delete;
//- Disallow default bitwise assignment
void operator=(const cloudInfo&);
//- No copy assignment
void operator=(const cloudInfo&) = delete;
public:

View File

@ -85,11 +85,11 @@ class dsmcFields
Switch log_;
// Private Member Functions
//- Disallow default bitwise copy construct
dsmcFields(const dsmcFields&);
//- No copy construct
dsmcFields(const dsmcFields&) = delete;
//- Disallow default bitwise assignment
void operator=(const dsmcFields&);
//- No copy assignment
void operator=(const dsmcFields&) = delete;
public:

View File

@ -124,11 +124,11 @@ class icoUncoupledKinematicCloud
// Private member functions
//- Disallow default bitwise copy construct
icoUncoupledKinematicCloud(const icoUncoupledKinematicCloud&);
//- No copy construct
icoUncoupledKinematicCloud(const icoUncoupledKinematicCloud&) = delete;
//- Disallow default bitwise assignment
void operator==(const icoUncoupledKinematicCloud&);
//- No copy assignment
void operator==(const icoUncoupledKinematicCloud&) = delete;
public:

View File

@ -269,10 +269,10 @@ class energyTransport
//- Return kappa
tmp<volScalarField> kappa() const;
//- Disallow default bitwise copy construct
//- No copy construct
energyTransport(const energyTransport&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const energyTransport&) = delete;

View File

@ -221,10 +221,10 @@ class scalarTransport
const surfaceScalarField& phi
) const;
//- Disallow default bitwise copy construct
//- No copy construct
scalarTransport(const scalarTransport&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const scalarTransport&) = delete;

View File

@ -89,10 +89,10 @@ class abort
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
abort(const abort&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const abort&) = delete;

View File

@ -136,11 +136,11 @@ protected:
private:
//- Disallow default bitwise copy construct
codedFunctionObject(const codedFunctionObject&);
//- No copy construct
codedFunctionObject(const codedFunctionObject&) = delete;
//- Disallow default bitwise assignment
void operator=(const codedFunctionObject&);
//- No copy assignment
void operator=(const codedFunctionObject&) = delete;
public:

View File

@ -86,11 +86,11 @@ class removeRegisteredObject
// Private member functions
//- Disallow default bitwise copy construct
removeRegisteredObject(const removeRegisteredObject&);
//- No copy construct
removeRegisteredObject(const removeRegisteredObject&) = delete;
//- Disallow default bitwise assignment
void operator=(const removeRegisteredObject&);
//- No copy assignment
void operator=(const removeRegisteredObject&) = delete;
public:

View File

@ -106,10 +106,10 @@ private:
// Private member functions
//- Disallow default bitwise copy construct
//- No copy construct
residuals(const residuals&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const residuals&) = delete;

View File

@ -83,11 +83,11 @@ class runTimeControl
// Private Member Functions
//- Disallow default bitwise copy construct
runTimeControl(const runTimeControl&);
//- No copy construct
runTimeControl(const runTimeControl&) = delete;
//- Disallow default bitwise assignment
void operator=(const runTimeControl&);
//- No copy assignment
void operator=(const runTimeControl&) = delete;
public:

View File

@ -99,11 +99,11 @@ class setTimeStepFunctionObject
// Private member functions
//- Disallow default bitwise copy construct
setTimeStepFunctionObject(const setTimeStepFunctionObject&);
//- No copy construct
setTimeStepFunctionObject(const setTimeStepFunctionObject&) = delete;
//- Disallow default bitwise assignment
void operator=(const setTimeStepFunctionObject&);
//- No copy assignment
void operator=(const setTimeStepFunctionObject&) = delete;
public:

View File

@ -131,10 +131,10 @@ protected:
//- Dispatch specified calls
label dispatch(const stringList& calls);
//- Disallow default bitwise copy construct
//- No copy construct
systemCall(const systemCall&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const systemCall&) = delete;

View File

@ -146,11 +146,11 @@ protected:
private:
//- Disallow default bitwise copy construct
thermoCoupleProbes(const thermoCoupleProbes&);
//- No copy construct
thermoCoupleProbes(const thermoCoupleProbes&) = delete;
//- Disallow default bitwise assignment
void operator=(const thermoCoupleProbes&);
//- No copy assignment
void operator=(const thermoCoupleProbes&) = delete;
public:

View File

@ -115,11 +115,11 @@ class timeActivatedFileUpdate
//- Update file
void updateFile();
//- Disallow default bitwise copy construct
timeActivatedFileUpdate(const timeActivatedFileUpdate&);
//- No copy construct
timeActivatedFileUpdate(const timeActivatedFileUpdate&) = delete;
//- Disallow default bitwise assignment
void operator=(const timeActivatedFileUpdate&);
//- No copy assignment
void operator=(const timeActivatedFileUpdate&) = delete;
public:

View File

@ -81,11 +81,11 @@ private:
// Private member functions
//- Disallow default bitwise copy construct
writeDictionary(const writeDictionary&);
//- No copy construct
writeDictionary(const writeDictionary&) = delete;
//- Disallow default bitwise assignment
void operator=(const writeDictionary&);
//- No copy assignment
void operator=(const writeDictionary&) = delete;
public:

View File

@ -137,10 +137,10 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
writeObjects(const writeObjects&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const writeObjects&) = delete;