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:
@ -104,7 +104,7 @@ class CSV
|
||||
//- Read the next value from the splitted string
|
||||
Type readValue(const List<string>&);
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const CSV<Type>&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -66,7 +66,7 @@ class Constant
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const Constant<Type>&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -60,7 +60,7 @@ class OneConstant
|
||||
{
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const OneConstant<Type>&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -76,7 +76,7 @@ class Polynomial
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const Polynomial<Type>&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -104,7 +104,7 @@ class Scale
|
||||
//- Read the coefficients from the given dictionary
|
||||
void read(const dictionary& coeffs);
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const Scale<Type>&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -116,7 +116,7 @@ class Sine
|
||||
//- Read the coefficients from the given dictionary
|
||||
void read(const dictionary& coeffs);
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const Sine<Type>&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -123,7 +123,7 @@ class Square
|
||||
//- Read the coefficients from the given dictionary
|
||||
void read(const dictionary& coeffs);
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const Square<Type>&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -68,7 +68,7 @@ class Table
|
||||
{
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const Table<Type>&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -94,7 +94,7 @@ protected:
|
||||
|
||||
private:
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const TableBase<Type>&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -83,7 +83,7 @@ class TableFile
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const TableFile<Type>&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -63,8 +63,8 @@ class Uniform
|
||||
{
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const Uniform<Type>&);
|
||||
//- No copy assignment
|
||||
void operator=(const Uniform<Type>&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -60,7 +60,7 @@ class ZeroConstant
|
||||
{
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const ZeroConstant<Type>&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ class halfCosineRamp
|
||||
{
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const halfCosineRamp&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ class linearRamp
|
||||
{
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const linearRamp&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ class quadraticRamp
|
||||
{
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const quadraticRamp&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ class quarterCosineRamp
|
||||
{
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const quarterCosineRamp&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ class quarterSineRamp
|
||||
{
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const quarterSineRamp&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -108,7 +108,7 @@ private:
|
||||
//- Read the coefficients from the given dictionary
|
||||
void read(const dictionary& coeffs);
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const ramp&) = delete;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user