Commit f9fe7181 authored by Mark Olesen's avatar Mark Olesen
Browse files

STYLE: consistent use of '= delete' for removed constructors/assignments

- make the purpose more explicit, and reduces some work for the
  compiler as well.
parent 6b6b36af
...@@ -94,11 +94,11 @@ class basicSubGrid ...@@ -94,11 +94,11 @@ class basicSubGrid
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
basicSubGrid(const basicSubGrid&); basicSubGrid(const basicSubGrid&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const basicSubGrid&); void operator=(const basicSubGrid&) = delete;
public: public:
......
...@@ -82,11 +82,11 @@ class basicSubGrid ...@@ -82,11 +82,11 @@ class basicSubGrid
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
basicSubGrid(const basicSubGrid&); basicSubGrid(const basicSubGrid&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const basicSubGrid&); void operator=(const basicSubGrid&) = delete;
public: public:
......
...@@ -74,11 +74,11 @@ private: ...@@ -74,11 +74,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
PDRDragModel(const PDRDragModel&); PDRDragModel(const PDRDragModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const PDRDragModel&); void operator=(const PDRDragModel&) = delete;
public: public:
......
...@@ -108,11 +108,11 @@ class basic ...@@ -108,11 +108,11 @@ class basic
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
basic(const basic&); basic(const basic&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const basic&); void operator=(const basic&) = delete;
public: public:
......
...@@ -70,11 +70,11 @@ class Gulder ...@@ -70,11 +70,11 @@ class Gulder
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
Gulder(const Gulder&); Gulder(const Gulder&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const Gulder&); void operator=(const Gulder&) = delete;
public: public:
......
...@@ -66,11 +66,11 @@ class SCOPEBlend ...@@ -66,11 +66,11 @@ class SCOPEBlend
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
SCOPEBlend(const SCOPEBlend&); SCOPEBlend(const SCOPEBlend&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const SCOPEBlend&); void operator=(const SCOPEBlend&) = delete;
public: public:
......
...@@ -84,11 +84,11 @@ class SCOPEXiEq ...@@ -84,11 +84,11 @@ class SCOPEXiEq
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
SCOPEXiEq(const SCOPEXiEq&); SCOPEXiEq(const SCOPEXiEq&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const SCOPEXiEq&); void operator=(const SCOPEXiEq&) = delete;
public: public:
......
...@@ -79,11 +79,11 @@ private: ...@@ -79,11 +79,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
XiEqModel(const XiEqModel&); XiEqModel(const XiEqModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const XiEqModel&); void operator=(const XiEqModel&) = delete;
public: public:
......
...@@ -65,11 +65,11 @@ class instability ...@@ -65,11 +65,11 @@ class instability
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
instability(const instability&); instability(const instability&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const instability&); void operator=(const instability&) = delete;
public: public:
......
...@@ -60,11 +60,11 @@ class KTS ...@@ -60,11 +60,11 @@ class KTS
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
KTS(const KTS&); KTS(const KTS&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const KTS&); void operator=(const KTS&) = delete;
public: public:
......
...@@ -70,11 +70,11 @@ private: ...@@ -70,11 +70,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
XiGModel(const XiGModel&); XiGModel(const XiGModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const XiGModel&); void operator=(const XiGModel&) = delete;
public: public:
......
...@@ -69,11 +69,11 @@ class instabilityG ...@@ -69,11 +69,11 @@ class instabilityG
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
instabilityG(const instabilityG&); instabilityG(const instabilityG&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const instabilityG&); void operator=(const instabilityG&) = delete;
public: public:
......
...@@ -130,11 +130,11 @@ private: ...@@ -130,11 +130,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
XiModel(const XiModel&); XiModel(const XiModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const XiModel&); void operator=(const XiModel&) = delete;
public: public:
......
...@@ -67,11 +67,11 @@ class algebraic ...@@ -67,11 +67,11 @@ class algebraic
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
algebraic(const algebraic&); algebraic(const algebraic&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const algebraic&); void operator=(const algebraic&) = delete;
public: public:
......
...@@ -55,11 +55,11 @@ class fixed ...@@ -55,11 +55,11 @@ class fixed
{ {
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
fixed(const fixed&); fixed(const fixed&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const fixed&); void operator=(const fixed&) = delete;
public: public:
......
...@@ -67,11 +67,11 @@ class transport ...@@ -67,11 +67,11 @@ class transport
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
transport(const transport&); transport(const transport&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const transport&); void operator=(const transport&) = delete;
public: public:
......
...@@ -56,11 +56,11 @@ class VoFPatchTransfer ...@@ -56,11 +56,11 @@ class VoFPatchTransfer
{ {
// Private member functions // Private member functions
//- Disallow default bitwise copy construct //- No copy construct
VoFPatchTransfer(const VoFPatchTransfer&); VoFPatchTransfer(const VoFPatchTransfer&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const VoFPatchTransfer&); void operator=(const VoFPatchTransfer&) = delete;
protected: protected:
......
...@@ -135,11 +135,14 @@ class VoFSolidificationMeltingSource ...@@ -135,11 +135,14 @@ class VoFSolidificationMeltingSource
template<class RhoFieldType> template<class RhoFieldType>
void apply(const RhoFieldType& rho, fvMatrix<scalar>& eqn); void apply(const RhoFieldType& rho, fvMatrix<scalar>& eqn);
//- Disallow default bitwise copy construct //- No copy construct
VoFSolidificationMeltingSource(const VoFSolidificationMeltingSource&); VoFSolidificationMeltingSource
(
const VoFSolidificationMeltingSource&
) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const VoFSolidificationMeltingSource&); void operator=(const VoFSolidificationMeltingSource&) = delete;
public: public:
......
...@@ -73,11 +73,11 @@ protected: ...@@ -73,11 +73,11 @@ protected:
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
mixtureViscosityModel(const mixtureViscosityModel&); mixtureViscosityModel(const mixtureViscosityModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const mixtureViscosityModel&); void operator=(const mixtureViscosityModel&) = delete;
public: public:
......
...@@ -55,11 +55,11 @@ class relativeVelocityModel ...@@ -55,11 +55,11 @@ class relativeVelocityModel
//- Return the list of patchFieldTypes for Udm derived from U //- Return the list of patchFieldTypes for Udm derived from U
wordList UdmPatchFieldTypes() const; wordList UdmPatchFieldTypes() const;
//- Disallow default bitwise copy construct //- No copy construct
relativeVelocityModel(const relativeVelocityModel&); relativeVelocityModel(const relativeVelocityModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const relativeVelocityModel&); void operator=(const relativeVelocityModel&) = delete;
protected: protected:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment