mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: consistent use of '= delete'
This commit is contained in:
@ -92,14 +92,14 @@ class compressibleInterPhaseTransportModel
|
|||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
//- No copy construct
|
||||||
compressibleInterPhaseTransportModel
|
compressibleInterPhaseTransportModel
|
||||||
(
|
(
|
||||||
const compressibleInterPhaseTransportModel&
|
const compressibleInterPhaseTransportModel&
|
||||||
);
|
) = delete;
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- No copy assignment
|
||||||
void operator=(const compressibleInterPhaseTransportModel&);
|
void operator=(const compressibleInterPhaseTransportModel&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -54,11 +54,14 @@ class ${typeName}Points0MotionSolver
|
|||||||
{
|
{
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
//- No copy construct
|
||||||
${typeName}Points0MotionSolver(const ${typeName}Points0MotionSolver&);
|
${typeName}Points0MotionSolver
|
||||||
|
(
|
||||||
|
const ${typeName}Points0MotionSolver&
|
||||||
|
) = delete;
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- No copy assignment
|
||||||
void operator=(const ${typeName}Points0MotionSolver&);
|
void operator=(const ${typeName}Points0MotionSolver&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -88,7 +91,7 @@ public:
|
|||||||
|
|
||||||
//- Solve for motion
|
//- Solve for motion
|
||||||
virtual void solve()
|
virtual void solve()
|
||||||
{};
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -60,7 +60,8 @@ public:
|
|||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct null
|
//- Construct null
|
||||||
CirculatorBase(){};
|
CirculatorBase()
|
||||||
|
{}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -66,8 +66,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~simpleRegIOobject()
|
virtual ~simpleRegIOobject() = default;
|
||||||
{};
|
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -51,10 +51,12 @@ public:
|
|||||||
const bool forward,
|
const bool forward,
|
||||||
List<T>& fld
|
List<T>& fld
|
||||||
) const
|
) const
|
||||||
{};
|
{}
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
void operator()(const coupledPolyPatch& cpp, Field<T>& fld) const
|
void operator()(const coupledPolyPatch& cpp, Field<T>& fld) const
|
||||||
{}
|
{}
|
||||||
|
|
||||||
template<class T, template<class> class Container>
|
template<class T, template<class> class Container>
|
||||||
void operator()(const coupledPolyPatch& cpp, Container<T>& map) const
|
void operator()(const coupledPolyPatch& cpp, Container<T>& map) const
|
||||||
{}
|
{}
|
||||||
|
|||||||
@ -84,9 +84,11 @@ class kEpsilonLopesdaCosta
|
|||||||
{
|
{
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
// Disallow default bitwise copy construct and assignment
|
//- No copy construct
|
||||||
kEpsilonLopesdaCosta(const kEpsilonLopesdaCosta&);
|
kEpsilonLopesdaCosta(const kEpsilonLopesdaCosta&) = delete;
|
||||||
void operator=(const kEpsilonLopesdaCosta&);
|
|
||||||
|
//- No copy assignment
|
||||||
|
void operator=(const kEpsilonLopesdaCosta&) = delete;
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -175,8 +177,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~kEpsilonLopesdaCosta()
|
virtual ~kEpsilonLopesdaCosta() = default;
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -146,11 +146,12 @@ class powerLawLopesdaCosta
|
|||||||
const vectorField& U
|
const vectorField& U
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
|
||||||
powerLawLopesdaCosta(const powerLawLopesdaCosta&);
|
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- No copy construct
|
||||||
void operator=(const powerLawLopesdaCosta&);
|
powerLawLopesdaCosta(const powerLawLopesdaCosta&) = delete;
|
||||||
|
|
||||||
|
//- No copy assignment
|
||||||
|
void operator=(const powerLawLopesdaCosta&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -56,8 +56,10 @@ class ChemistryCombustion
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Construct as copy (not implemented)
|
//- Construct as copy (not implemented)
|
||||||
ChemistryCombustion(const ChemistryCombustion<ReactionThermo>&) =
|
ChemistryCombustion
|
||||||
delete;
|
(
|
||||||
|
const ChemistryCombustion<ReactionThermo>&
|
||||||
|
) = delete;
|
||||||
|
|
||||||
//- No copy assignment
|
//- No copy assignment
|
||||||
void operator=(const ChemistryCombustion<ReactionThermo>&) = delete;
|
void operator=(const ChemistryCombustion<ReactionThermo>&) = delete;
|
||||||
|
|||||||
@ -117,13 +117,11 @@ protected:
|
|||||||
virtual const dictionary& codeDict() const;
|
virtual const dictionary& codeDict() const;
|
||||||
|
|
||||||
|
|
||||||
private:
|
//- No copy assignment construct
|
||||||
|
codedPoints0MotionSolver(const codedPoints0MotionSolver&) = delete;
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
//- No copy assignment
|
||||||
codedPoints0MotionSolver(const codedPoints0MotionSolver&);
|
void operator=(const codedPoints0MotionSolver&) = delete;
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
|
||||||
void operator=(const codedPoints0MotionSolver&);
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -111,7 +111,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
~polyMeshFilterSettings(){};
|
~polyMeshFilterSettings() = default;
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -81,11 +81,11 @@ class freePiston
|
|||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
//- No copy construct
|
||||||
freePiston(const freePiston&);
|
freePiston(const freePiston&) = delete;
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- No copy assignment
|
||||||
void operator=(const freePiston&);
|
void operator=(const freePiston&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -108,8 +108,7 @@ public:
|
|||||||
);
|
);
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~freePiston()
|
virtual ~freePiston() = default;
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -89,11 +89,11 @@ class PhaseLimitStabilization
|
|||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
//- No copy construct
|
||||||
PhaseLimitStabilization(const PhaseLimitStabilization&);
|
PhaseLimitStabilization(const PhaseLimitStabilization&) = delete;
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- No copy assignment
|
||||||
void operator=(const PhaseLimitStabilization&);
|
void operator=(const PhaseLimitStabilization&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -115,8 +115,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~PhaseLimitStabilization()
|
virtual ~PhaseLimitStabilization() = default;
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -161,12 +161,6 @@ waxSolventViscosity::waxSolventViscosity
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
waxSolventViscosity::~waxSolventViscosity()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
void waxSolventViscosity::correct
|
void waxSolventViscosity::correct
|
||||||
|
|||||||
@ -59,10 +59,10 @@ class waxSolventViscosity
|
|||||||
//- Correct the mixture viscosity
|
//- Correct the mixture viscosity
|
||||||
void correctMu();
|
void correctMu();
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
//- No copy construct
|
||||||
waxSolventViscosity(const waxSolventViscosity&);
|
waxSolventViscosity(const waxSolventViscosity&) = delete;
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- No copy assignment
|
||||||
void operator=(const waxSolventViscosity&) = delete;
|
void operator=(const waxSolventViscosity&) = delete;
|
||||||
|
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~waxSolventViscosity();
|
virtual ~waxSolventViscosity() = default;
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -127,7 +127,7 @@ waxSolventEvaporation::waxSolventEvaporation
|
|||||||
deltaMin_(readScalar(coeffDict_.lookup("deltaMin"))),
|
deltaMin_(readScalar(coeffDict_.lookup("deltaMin"))),
|
||||||
L_(readScalar(coeffDict_.lookup("L"))),
|
L_(readScalar(coeffDict_.lookup("L"))),
|
||||||
TbFactor_(coeffDict_.lookupOrDefault<scalar>("TbFactor", 1.1)),
|
TbFactor_(coeffDict_.lookupOrDefault<scalar>("TbFactor", 1.1)),
|
||||||
YInfZero_(coeffDict_.lookupOrDefault<Switch>("YInfZero", false)),
|
YInfZero_(coeffDict_.lookupOrDefault("YInfZero", false)),
|
||||||
activityCoeff_
|
activityCoeff_
|
||||||
(
|
(
|
||||||
Function1<scalar>::New("activityCoeff", coeffDict_)
|
Function1<scalar>::New("activityCoeff", coeffDict_)
|
||||||
|
|||||||
@ -58,11 +58,11 @@ class waxSolventEvaporation
|
|||||||
{
|
{
|
||||||
// Private member functions
|
// Private member functions
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
//- No copy construct
|
||||||
waxSolventEvaporation(const waxSolventEvaporation&);
|
waxSolventEvaporation(const waxSolventEvaporation&) = delete;
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- No copy assignment
|
||||||
void operator=(const waxSolventEvaporation&);
|
void operator=(const waxSolventEvaporation&) = delete;
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -92,7 +92,7 @@ protected:
|
|||||||
const scalar TbFactor_;
|
const scalar TbFactor_;
|
||||||
|
|
||||||
//- Switch to treat YInf as zero
|
//- Switch to treat YInf as zero
|
||||||
Switch YInfZero_;
|
bool YInfZero_;
|
||||||
|
|
||||||
//- Activity coefficient as a function of solvent mole fraction
|
//- Activity coefficient as a function of solvent mole fraction
|
||||||
autoPtr<Function1<scalar>> activityCoeff_;
|
autoPtr<Function1<scalar>> activityCoeff_;
|
||||||
|
|||||||
@ -108,8 +108,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~OppositeFaceCellWave()
|
virtual ~OppositeFaceCellWave() = default;
|
||||||
{};
|
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -60,8 +60,10 @@ class BasicChemistryModel
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Construct as copy (not implemented)
|
//- Construct as copy (not implemented)
|
||||||
BasicChemistryModel(const BasicChemistryModel<ReactionThermo>&) =
|
BasicChemistryModel
|
||||||
delete;
|
(
|
||||||
|
const BasicChemistryModel<ReactionThermo>&
|
||||||
|
) = delete;
|
||||||
|
|
||||||
//- No copy assignment
|
//- No copy assignment
|
||||||
void operator=(const BasicChemistryModel<ReactionThermo>&) = delete;
|
void operator=(const BasicChemistryModel<ReactionThermo>&) = delete;
|
||||||
|
|||||||
Reference in New Issue
Block a user