mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: Code clean-up
This commit is contained in:
@ -232,15 +232,15 @@ Foam::Function1Types::CSV<Type>::CSV
|
|||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
Foam::Function1Types::CSV<Type>::CSV(const CSV<Type>& tbl)
|
Foam::Function1Types::CSV<Type>::CSV(const CSV<Type>& csv)
|
||||||
:
|
:
|
||||||
TableBase<Type>(tbl),
|
TableBase<Type>(csv),
|
||||||
nHeaderLine_(tbl.nHeaderLine_),
|
nHeaderLine_(csv.nHeaderLine_),
|
||||||
refColumn_(tbl.refColumn_),
|
refColumn_(csv.refColumn_),
|
||||||
componentColumns_(tbl.componentColumns_),
|
componentColumns_(csv.componentColumns_),
|
||||||
separator_(tbl.separator_),
|
separator_(csv.separator_),
|
||||||
mergeSeparators_(tbl.mergeSeparators_),
|
mergeSeparators_(csv.mergeSeparators_),
|
||||||
fName_(tbl.fName_)
|
fName_(csv.fName_)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -105,7 +105,7 @@ class CSV
|
|||||||
Type readValue(const List<string>&);
|
Type readValue(const List<string>&);
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const CSV<Type>&);
|
void operator=(const CSV<Type>&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -125,7 +125,7 @@ public:
|
|||||||
);
|
);
|
||||||
|
|
||||||
//- Copy constructor
|
//- Copy constructor
|
||||||
CSV(const CSV<Type>& tbl);
|
explicit CSV(const CSV<Type>& csv);
|
||||||
|
|
||||||
//- Construct and return a clone
|
//- Construct and return a clone
|
||||||
virtual tmp<Function1<Type>> clone() const
|
virtual tmp<Function1<Type>> clone() const
|
||||||
|
|||||||
@ -67,7 +67,7 @@ class Constant
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const Constant<Type>&);
|
void operator=(const Constant<Type>&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -90,7 +90,7 @@ public:
|
|||||||
Constant(const word& entryName, Istream& is);
|
Constant(const word& entryName, Istream& is);
|
||||||
|
|
||||||
//- Copy constructor
|
//- Copy constructor
|
||||||
Constant(const Constant<Type>& cnst);
|
explicit Constant(const Constant<Type>& cnst);
|
||||||
|
|
||||||
//- Construct and return a clone
|
//- Construct and return a clone
|
||||||
virtual tmp<Function1<Type>> clone() const
|
virtual tmp<Function1<Type>> clone() const
|
||||||
|
|||||||
@ -66,7 +66,7 @@ class Function1
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const Function1<Type>&);
|
void operator=(const Function1<Type>&) = delete;
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -101,10 +101,10 @@ public:
|
|||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct from entry name
|
//- Construct from entry name
|
||||||
Function1(const word& entryName);
|
explicit Function1(const word& entryName);
|
||||||
|
|
||||||
//- Copy constructor
|
//- Copy constructor
|
||||||
Function1(const Function1<Type>& f1);
|
explicit Function1(const Function1<Type>& f1);
|
||||||
|
|
||||||
//- Construct and return a clone
|
//- Construct and return a clone
|
||||||
virtual tmp<Function1<Type>> clone() const = 0;
|
virtual tmp<Function1<Type>> clone() const = 0;
|
||||||
@ -255,7 +255,6 @@ public:
|
|||||||
|
|
||||||
#ifdef NoRepository
|
#ifdef NoRepository
|
||||||
#include "Function1.C"
|
#include "Function1.C"
|
||||||
#include "Constant.H"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -61,7 +61,7 @@ class OneConstant
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const OneConstant<Type>&);
|
void operator=(const OneConstant<Type>&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -73,7 +73,7 @@ public:
|
|||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct from entry name
|
//- Construct from entry name
|
||||||
OneConstant(const word& entryName);
|
explicit OneConstant(const word& entryName);
|
||||||
|
|
||||||
//- Construct from entry name and dictionary
|
//- Construct from entry name and dictionary
|
||||||
OneConstant(const word& entryName, const dictionary& dict);
|
OneConstant(const word& entryName, const dictionary& dict);
|
||||||
|
|||||||
@ -77,7 +77,7 @@ class Polynomial
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const Polynomial<Type>&);
|
void operator=(const Polynomial<Type>&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -98,7 +98,7 @@ public:
|
|||||||
);
|
);
|
||||||
|
|
||||||
//- Copy constructor
|
//- Copy constructor
|
||||||
Polynomial(const Polynomial& poly);
|
explicit Polynomial(const Polynomial& poly);
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
|
|||||||
@ -105,7 +105,7 @@ class Scale
|
|||||||
void read(const dictionary& coeffs);
|
void read(const dictionary& coeffs);
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const Scale<Type>&);
|
void operator=(const Scale<Type>&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -124,7 +124,7 @@ public:
|
|||||||
);
|
);
|
||||||
|
|
||||||
//- Copy constructor
|
//- Copy constructor
|
||||||
Scale(const Scale<Type>& se);
|
explicit Scale(const Scale<Type>& se);
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
|
|||||||
@ -117,7 +117,7 @@ class Sine
|
|||||||
void read(const dictionary& coeffs);
|
void read(const dictionary& coeffs);
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const Sine<Type>&);
|
void operator=(const Sine<Type>&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -136,7 +136,7 @@ public:
|
|||||||
);
|
);
|
||||||
|
|
||||||
//- Copy constructor
|
//- Copy constructor
|
||||||
Sine(const Sine<Type>& se);
|
explicit Sine(const Sine<Type>& se);
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
|
|||||||
@ -124,7 +124,7 @@ class Square
|
|||||||
void read(const dictionary& coeffs);
|
void read(const dictionary& coeffs);
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const Square<Type>&);
|
void operator=(const Square<Type>&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -143,7 +143,7 @@ public:
|
|||||||
);
|
);
|
||||||
|
|
||||||
//- Copy constructor
|
//- Copy constructor
|
||||||
Square(const Square<Type>& se);
|
explicit Square(const Square<Type>& se);
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
|
|||||||
@ -69,7 +69,7 @@ class Table
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const Table<Type>&);
|
void operator=(const Table<Type>&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -84,7 +84,7 @@ public:
|
|||||||
Table(const word& entryName, const dictionary& dict);
|
Table(const word& entryName, const dictionary& dict);
|
||||||
|
|
||||||
//- Copy constructor
|
//- Copy constructor
|
||||||
Table(const Table<Type>& tbl);
|
explicit Table(const Table<Type>& tbl);
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
|
|||||||
@ -106,7 +106,7 @@ public:
|
|||||||
TableBase(const word& name, const dictionary& dict);
|
TableBase(const word& name, const dictionary& dict);
|
||||||
|
|
||||||
//- Copy constructor. Note: steals interpolator, tableSamples
|
//- Copy constructor. Note: steals interpolator, tableSamples
|
||||||
TableBase(const TableBase<Type>& tbl);
|
explicit TableBase(const TableBase<Type>& tbl);
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
|
|||||||
@ -84,7 +84,7 @@ class TableFile
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const TableFile<Type>&);
|
void operator=(const TableFile<Type>&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -99,7 +99,7 @@ public:
|
|||||||
TableFile(const word& entryName, const dictionary& dict);
|
TableFile(const word& entryName, const dictionary& dict);
|
||||||
|
|
||||||
//- Copy constructor
|
//- Copy constructor
|
||||||
TableFile(const TableFile<Type>& tbl);
|
explicit TableFile(const TableFile<Type>& tbl);
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
|
|||||||
@ -61,7 +61,7 @@ class ZeroConstant
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const ZeroConstant<Type>&);
|
void operator=(const ZeroConstant<Type>&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -49,7 +49,7 @@ namespace Function1Types
|
|||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class halfCosineRamp Declaration
|
Class halfCosineRamp Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
class halfCosineRamp
|
class halfCosineRamp
|
||||||
@ -59,7 +59,7 @@ class halfCosineRamp
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const halfCosineRamp&);
|
void operator=(const halfCosineRamp&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -59,7 +59,7 @@ class linearRamp
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const linearRamp&);
|
void operator=(const linearRamp&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -49,7 +49,7 @@ namespace Function1Types
|
|||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class quadraticRamp Declaration
|
Class quadraticRamp Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
class quadraticRamp
|
class quadraticRamp
|
||||||
@ -59,7 +59,7 @@ class quadraticRamp
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const quadraticRamp&);
|
void operator=(const quadraticRamp&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -49,7 +49,7 @@ namespace Function1Types
|
|||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class quarterCosineRamp Declaration
|
Class quarterCosineRamp Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
class quarterCosineRamp
|
class quarterCosineRamp
|
||||||
@ -59,7 +59,7 @@ class quarterCosineRamp
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const quarterCosineRamp&);
|
void operator=(const quarterCosineRamp&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -49,7 +49,7 @@ namespace Function1Types
|
|||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class quarterSineRamp Declaration
|
Class quarterSineRamp Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
class quarterSineRamp
|
class quarterSineRamp
|
||||||
@ -59,7 +59,7 @@ class quarterSineRamp
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const quarterSineRamp&);
|
void operator=(const quarterSineRamp&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -109,7 +109,7 @@ private:
|
|||||||
void read(const dictionary& coeffs);
|
void read(const dictionary& coeffs);
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const ramp&);
|
void operator=(const ramp&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user