mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +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:
@ -94,11 +94,11 @@ class basicSubGrid
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow copy construct
|
||||
basicSubGrid(const basicSubGrid&);
|
||||
//- No copy construct
|
||||
basicSubGrid(const basicSubGrid&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const basicSubGrid&);
|
||||
//- No copy assignment
|
||||
void operator=(const basicSubGrid&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -82,11 +82,11 @@ class basicSubGrid
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow copy construct
|
||||
basicSubGrid(const basicSubGrid&);
|
||||
//- No copy construct
|
||||
basicSubGrid(const basicSubGrid&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const basicSubGrid&);
|
||||
//- No copy assignment
|
||||
void operator=(const basicSubGrid&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -74,11 +74,11 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow copy construct
|
||||
PDRDragModel(const PDRDragModel&);
|
||||
//- No copy construct
|
||||
PDRDragModel(const PDRDragModel&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const PDRDragModel&);
|
||||
//- No copy assignment
|
||||
void operator=(const PDRDragModel&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -108,11 +108,11 @@ class basic
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow copy construct
|
||||
basic(const basic&);
|
||||
//- No copy construct
|
||||
basic(const basic&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const basic&);
|
||||
//- No copy assignment
|
||||
void operator=(const basic&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -70,11 +70,11 @@ class Gulder
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow copy construct
|
||||
Gulder(const Gulder&);
|
||||
//- No copy construct
|
||||
Gulder(const Gulder&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const Gulder&);
|
||||
//- No copy assignment
|
||||
void operator=(const Gulder&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -66,11 +66,11 @@ class SCOPEBlend
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow copy construct
|
||||
SCOPEBlend(const SCOPEBlend&);
|
||||
//- No copy construct
|
||||
SCOPEBlend(const SCOPEBlend&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const SCOPEBlend&);
|
||||
//- No copy assignment
|
||||
void operator=(const SCOPEBlend&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -84,11 +84,11 @@ class SCOPEXiEq
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow copy construct
|
||||
SCOPEXiEq(const SCOPEXiEq&);
|
||||
//- No copy construct
|
||||
SCOPEXiEq(const SCOPEXiEq&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const SCOPEXiEq&);
|
||||
//- No copy assignment
|
||||
void operator=(const SCOPEXiEq&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -79,11 +79,11 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow copy construct
|
||||
XiEqModel(const XiEqModel&);
|
||||
//- No copy construct
|
||||
XiEqModel(const XiEqModel&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const XiEqModel&);
|
||||
//- No copy assignment
|
||||
void operator=(const XiEqModel&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -65,11 +65,11 @@ class instability
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow copy construct
|
||||
instability(const instability&);
|
||||
//- No copy construct
|
||||
instability(const instability&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const instability&);
|
||||
//- No copy assignment
|
||||
void operator=(const instability&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -60,11 +60,11 @@ class KTS
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow copy construct
|
||||
KTS(const KTS&);
|
||||
//- No copy construct
|
||||
KTS(const KTS&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const KTS&);
|
||||
//- No copy assignment
|
||||
void operator=(const KTS&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -70,11 +70,11 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow copy construct
|
||||
XiGModel(const XiGModel&);
|
||||
//- No copy construct
|
||||
XiGModel(const XiGModel&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const XiGModel&);
|
||||
//- No copy assignment
|
||||
void operator=(const XiGModel&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -69,11 +69,11 @@ class instabilityG
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow copy construct
|
||||
instabilityG(const instabilityG&);
|
||||
//- No copy construct
|
||||
instabilityG(const instabilityG&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const instabilityG&);
|
||||
//- No copy assignment
|
||||
void operator=(const instabilityG&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -130,11 +130,11 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow copy construct
|
||||
XiModel(const XiModel&);
|
||||
//- No copy construct
|
||||
XiModel(const XiModel&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const XiModel&);
|
||||
//- No copy assignment
|
||||
void operator=(const XiModel&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -67,11 +67,11 @@ class algebraic
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow copy construct
|
||||
algebraic(const algebraic&);
|
||||
//- No copy construct
|
||||
algebraic(const algebraic&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const algebraic&);
|
||||
//- No copy assignment
|
||||
void operator=(const algebraic&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -55,11 +55,11 @@ class fixed
|
||||
{
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow copy construct
|
||||
fixed(const fixed&);
|
||||
//- No copy construct
|
||||
fixed(const fixed&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const fixed&);
|
||||
//- No copy assignment
|
||||
void operator=(const fixed&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -67,11 +67,11 @@ class transport
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow copy construct
|
||||
transport(const transport&);
|
||||
//- No copy construct
|
||||
transport(const transport&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const transport&);
|
||||
//- No copy assignment
|
||||
void operator=(const transport&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user