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:
@ -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;
|
||||
|
||||
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user