mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use default for constructors/destructors
This commit is contained in:
committed by
Andrew Heather
parent
80daea6017
commit
4de1215b44
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
@ -151,8 +151,8 @@ class lduAddressing
|
||||
|
||||
public:
|
||||
|
||||
// Constructor
|
||||
lduAddressing(const label nEqns)
|
||||
//- Construct with size (number of equations)
|
||||
explicit lduAddressing(const label nEqns)
|
||||
:
|
||||
size_(nEqns),
|
||||
losortPtr_(nullptr),
|
||||
|
||||
@ -26,7 +26,6 @@ License
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "cyclicLduInterface.H"
|
||||
#include "diagTensorField.H"
|
||||
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
@ -36,10 +35,4 @@ defineTypeNameAndDebug(cyclicLduInterface, 0);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::cyclicLduInterface::~cyclicLduInterface()
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd |
|
||||
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
| Copyright (C) 2011 OpenFOAM Foundation
|
||||
@ -51,7 +51,6 @@ namespace Foam
|
||||
|
||||
class cyclicLduInterface
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
@ -59,8 +58,12 @@ public:
|
||||
|
||||
// Constructors
|
||||
|
||||
//- Construct null
|
||||
cyclicLduInterface() = default;
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~cyclicLduInterface();
|
||||
virtual ~cyclicLduInterface() = default;
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -36,12 +36,6 @@ defineTypeNameAndDebug(cyclicLduInterfaceField, 0);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::cyclicLduInterfaceField::~cyclicLduInterfaceField()
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::cyclicLduInterfaceField::transformCoupleField
|
||||
|
||||
@ -60,13 +60,12 @@ public:
|
||||
|
||||
// Constructors
|
||||
|
||||
//- Construct given coupled patch
|
||||
cyclicLduInterfaceField()
|
||||
{}
|
||||
//- Construct null
|
||||
cyclicLduInterfaceField() = default;
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~cyclicLduInterfaceField();
|
||||
virtual ~cyclicLduInterfaceField() = default;
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -85,7 +85,7 @@ public:
|
||||
// Constructors
|
||||
|
||||
//- Construct given coupled patch
|
||||
lduInterfaceField(const lduInterface& patch)
|
||||
explicit lduInterfaceField(const lduInterface& patch)
|
||||
:
|
||||
interface_(patch),
|
||||
updatedMatrix_(false)
|
||||
|
||||
@ -36,12 +36,6 @@ defineTypeNameAndDebug(processorLduInterfaceField, 0);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::processorLduInterfaceField::~processorLduInterfaceField()
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::processorLduInterfaceField::transformCoupleField
|
||||
|
||||
@ -60,13 +60,12 @@ public:
|
||||
|
||||
// Constructors
|
||||
|
||||
//- Construct given coupled patch
|
||||
processorLduInterfaceField()
|
||||
{}
|
||||
//- Construct null
|
||||
processorLduInterfaceField() = default;
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~processorLduInterfaceField();
|
||||
virtual ~processorLduInterfaceField() = default;
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -86,10 +86,4 @@ Foam::processorCyclicGAMGInterface::processorCyclicGAMGInterface
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::processorCyclicGAMGInterface::~processorCyclicGAMGInterface()
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -94,10 +94,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~processorCyclicGAMGInterface();
|
||||
|
||||
//- Destructor
|
||||
virtual ~processorCyclicGAMGInterface() = default;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd |
|
||||
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
| Copyright (C) 2011 OpenFOAM Foundation
|
||||
@ -50,8 +50,6 @@ class valveBank
|
||||
:
|
||||
public PtrList<engineValve>
|
||||
{
|
||||
private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- No copy construct
|
||||
@ -92,10 +90,8 @@ public:
|
||||
}
|
||||
|
||||
|
||||
// Destructor - default
|
||||
|
||||
|
||||
// Member Functions
|
||||
//- Destructor
|
||||
~valveBank() = default;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -113,7 +113,7 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
//- Destructor
|
||||
virtual ~faPatchMapper();
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd |
|
||||
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
| Copyright (C) 2016-2017 Wikki Ltd
|
||||
@ -74,9 +74,6 @@ public:
|
||||
|
||||
// Constructors
|
||||
|
||||
//- Construct null
|
||||
volSurfaceMapping();
|
||||
|
||||
//- Construct from mesh
|
||||
volSurfaceMapping(const faMesh& mesh)
|
||||
:
|
||||
@ -84,7 +81,8 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor - default
|
||||
//- Destructor
|
||||
~volSurfaceMapping() = default;
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -82,7 +82,7 @@ public:
|
||||
// Constructors
|
||||
|
||||
//- Construct from fine level interface,
|
||||
// local and neighbour restrict addressing
|
||||
//- local and neighbour restrict addressing
|
||||
cyclicACMIGAMGInterface
|
||||
(
|
||||
const label index,
|
||||
|
||||
@ -82,7 +82,7 @@ public:
|
||||
// Constructors
|
||||
|
||||
//- Construct from fine level interface,
|
||||
// local and neighbour restrict addressing
|
||||
//- local and neighbour restrict addressing
|
||||
cyclicAMIGAMGInterface
|
||||
(
|
||||
const label index,
|
||||
|
||||
@ -35,10 +35,4 @@ defineTypeNameAndDebug(cyclicACMILduInterface, 0);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::cyclicACMILduInterface::~cyclicACMILduInterface()
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd |
|
||||
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
| Copyright (C) 2013 OpenFOAM Foundation
|
||||
@ -52,7 +52,6 @@ class cyclicACMILduInterface
|
||||
:
|
||||
public cyclicAMILduInterface
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
@ -62,12 +61,11 @@ public:
|
||||
// Constructors
|
||||
|
||||
//- Construct null
|
||||
cyclicACMILduInterface()
|
||||
{}
|
||||
cyclicACMILduInterface() = default;
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~cyclicACMILduInterface();
|
||||
virtual ~cyclicACMILduInterface() = default;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -35,10 +35,4 @@ defineTypeNameAndDebug(cyclicAMILduInterface, 0);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::cyclicAMILduInterface::~cyclicAMILduInterface()
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd |
|
||||
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
| Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
@ -61,12 +61,11 @@ public:
|
||||
// Constructors
|
||||
|
||||
//- Construct null
|
||||
cyclicAMILduInterface()
|
||||
{}
|
||||
cyclicAMILduInterface() = default;
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~cyclicAMILduInterface();
|
||||
virtual ~cyclicAMILduInterface() = default;
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
Reference in New Issue
Block a user