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:
Mark Olesen
2018-05-30 12:03:17 +02:00
parent 6b6b36afd3
commit f9fe71815a
976 changed files with 3606 additions and 3419 deletions

View File

@ -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;

View File

@ -66,7 +66,7 @@ class Constant
// Private Member Functions
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const Constant<Type>&) = delete;

View File

@ -60,7 +60,7 @@ class OneConstant
{
// Private Member Functions
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const OneConstant<Type>&) = delete;

View File

@ -76,7 +76,7 @@ class Polynomial
// Private Member Functions
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const Polynomial<Type>&) = delete;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -68,7 +68,7 @@ class Table
{
// Private Member Functions
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const Table<Type>&) = delete;

View File

@ -94,7 +94,7 @@ protected:
private:
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const TableBase<Type>&) = delete;

View File

@ -83,7 +83,7 @@ class TableFile
// Private Member Functions
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const TableFile<Type>&) = delete;

View File

@ -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:

View File

@ -60,7 +60,7 @@ class ZeroConstant
{
// Private Member Functions
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const ZeroConstant<Type>&) = delete;

View File

@ -58,7 +58,7 @@ class halfCosineRamp
{
// Private Member Functions
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const halfCosineRamp&) = delete;

View File

@ -58,7 +58,7 @@ class linearRamp
{
// Private Member Functions
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const linearRamp&) = delete;

View File

@ -58,7 +58,7 @@ class quadraticRamp
{
// Private Member Functions
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const quadraticRamp&) = delete;

View File

@ -58,7 +58,7 @@ class quarterCosineRamp
{
// Private Member Functions
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const quarterCosineRamp&) = delete;

View File

@ -58,7 +58,7 @@ class quarterSineRamp
{
// Private Member Functions
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const quarterSineRamp&) = delete;

View File

@ -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;