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

@ -94,11 +94,11 @@ class basicSubGrid
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
basicSubGrid(const basicSubGrid&); basicSubGrid(const basicSubGrid&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const basicSubGrid&); void operator=(const basicSubGrid&) = delete;
public: public:

View File

@ -82,11 +82,11 @@ class basicSubGrid
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
basicSubGrid(const basicSubGrid&); basicSubGrid(const basicSubGrid&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const basicSubGrid&); void operator=(const basicSubGrid&) = delete;
public: public:

View File

@ -74,11 +74,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
PDRDragModel(const PDRDragModel&); PDRDragModel(const PDRDragModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const PDRDragModel&); void operator=(const PDRDragModel&) = delete;
public: public:

View File

@ -108,11 +108,11 @@ class basic
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
basic(const basic&); basic(const basic&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const basic&); void operator=(const basic&) = delete;
public: public:

View File

@ -70,11 +70,11 @@ class Gulder
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
Gulder(const Gulder&); Gulder(const Gulder&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const Gulder&); void operator=(const Gulder&) = delete;
public: public:

View File

@ -66,11 +66,11 @@ class SCOPEBlend
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
SCOPEBlend(const SCOPEBlend&); SCOPEBlend(const SCOPEBlend&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const SCOPEBlend&); void operator=(const SCOPEBlend&) = delete;
public: public:

View File

@ -84,11 +84,11 @@ class SCOPEXiEq
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
SCOPEXiEq(const SCOPEXiEq&); SCOPEXiEq(const SCOPEXiEq&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const SCOPEXiEq&); void operator=(const SCOPEXiEq&) = delete;
public: public:

View File

@ -79,11 +79,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
XiEqModel(const XiEqModel&); XiEqModel(const XiEqModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const XiEqModel&); void operator=(const XiEqModel&) = delete;
public: public:

View File

@ -65,11 +65,11 @@ class instability
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
instability(const instability&); instability(const instability&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const instability&); void operator=(const instability&) = delete;
public: public:

View File

@ -60,11 +60,11 @@ class KTS
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
KTS(const KTS&); KTS(const KTS&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const KTS&); void operator=(const KTS&) = delete;
public: public:

View File

@ -70,11 +70,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
XiGModel(const XiGModel&); XiGModel(const XiGModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const XiGModel&); void operator=(const XiGModel&) = delete;
public: public:

View File

@ -69,11 +69,11 @@ class instabilityG
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
instabilityG(const instabilityG&); instabilityG(const instabilityG&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const instabilityG&); void operator=(const instabilityG&) = delete;
public: public:

View File

@ -130,11 +130,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
XiModel(const XiModel&); XiModel(const XiModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const XiModel&); void operator=(const XiModel&) = delete;
public: public:

View File

@ -67,11 +67,11 @@ class algebraic
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
algebraic(const algebraic&); algebraic(const algebraic&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const algebraic&); void operator=(const algebraic&) = delete;
public: public:

View File

@ -55,11 +55,11 @@ class fixed
{ {
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
fixed(const fixed&); fixed(const fixed&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const fixed&); void operator=(const fixed&) = delete;
public: public:

View File

@ -67,11 +67,11 @@ class transport
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
transport(const transport&); transport(const transport&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const transport&); void operator=(const transport&) = delete;
public: public:

View File

@ -56,11 +56,11 @@ class VoFPatchTransfer
{ {
// Private member functions // Private member functions
//- Disallow default bitwise copy construct //- No copy construct
VoFPatchTransfer(const VoFPatchTransfer&); VoFPatchTransfer(const VoFPatchTransfer&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const VoFPatchTransfer&); void operator=(const VoFPatchTransfer&) = delete;
protected: protected:

View File

@ -135,11 +135,14 @@ class VoFSolidificationMeltingSource
template<class RhoFieldType> template<class RhoFieldType>
void apply(const RhoFieldType& rho, fvMatrix<scalar>& eqn); void apply(const RhoFieldType& rho, fvMatrix<scalar>& eqn);
//- Disallow default bitwise copy construct //- No copy construct
VoFSolidificationMeltingSource(const VoFSolidificationMeltingSource&); VoFSolidificationMeltingSource
(
const VoFSolidificationMeltingSource&
) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const VoFSolidificationMeltingSource&); void operator=(const VoFSolidificationMeltingSource&) = delete;
public: public:

View File

@ -73,11 +73,11 @@ protected:
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
mixtureViscosityModel(const mixtureViscosityModel&); mixtureViscosityModel(const mixtureViscosityModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const mixtureViscosityModel&); void operator=(const mixtureViscosityModel&) = delete;
public: public:

View File

@ -55,11 +55,11 @@ class relativeVelocityModel
//- Return the list of patchFieldTypes for Udm derived from U //- Return the list of patchFieldTypes for Udm derived from U
wordList UdmPatchFieldTypes() const; wordList UdmPatchFieldTypes() const;
//- Disallow default bitwise copy construct //- No copy construct
relativeVelocityModel(const relativeVelocityModel&); relativeVelocityModel(const relativeVelocityModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const relativeVelocityModel&); void operator=(const relativeVelocityModel&) = delete;
protected: protected:

View File

@ -68,14 +68,14 @@ protected:
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
temperaturePhaseChangeTwoPhaseMixture temperaturePhaseChangeTwoPhaseMixture
( (
const temperaturePhaseChangeTwoPhaseMixture& const temperaturePhaseChangeTwoPhaseMixture&
); ) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const temperaturePhaseChangeTwoPhaseMixture&); void operator=(const temperaturePhaseChangeTwoPhaseMixture&) = delete;
public: public:

View File

@ -73,9 +73,15 @@ class threePhaseInterfaceProperties
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct and assignment //- No copy construct
threePhaseInterfaceProperties(const threePhaseInterfaceProperties&); threePhaseInterfaceProperties
void operator=(const threePhaseInterfaceProperties&); (
const threePhaseInterfaceProperties&
) = delete;
//- No copy assignment
void operator=(const threePhaseInterfaceProperties&) = delete;
//- Correction for the boundary condition on the unit normal nHat on //- Correction for the boundary condition on the unit normal nHat on
// walls to produce the correct contact dynamic angle. // walls to produce the correct contact dynamic angle.

View File

@ -69,11 +69,11 @@ protected:
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
phaseChangeTwoPhaseMixture(const phaseChangeTwoPhaseMixture&); phaseChangeTwoPhaseMixture(const phaseChangeTwoPhaseMixture&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const phaseChangeTwoPhaseMixture&); void operator=(const phaseChangeTwoPhaseMixture&) = delete;
public: public:

View File

@ -52,11 +52,11 @@ class saturationModel
{ {
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
saturationModel(const saturationModel&); saturationModel(const saturationModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const saturationModel&); void operator=(const saturationModel&) = delete;
public: public:

View File

@ -58,11 +58,11 @@ class wallDependentModel
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
wallDependentModel(const wallDependentModel&); wallDependentModel(const wallDependentModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const wallDependentModel&); void operator=(const wallDependentModel&) = delete;
public: public:

View File

@ -78,11 +78,14 @@ class BlendedInterfacialModel
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
BlendedInterfacialModel(const BlendedInterfacialModel<ModelType>&); BlendedInterfacialModel
(
const BlendedInterfacialModel&
) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const BlendedInterfacialModel<ModelType>&); void operator=(const BlendedInterfacialModel<ModelType>&) = delete;
//- Correct coeff/value on fixed flux boundary conditions //- Correct coeff/value on fixed flux boundary conditions
template<class GeometricField> template<class GeometricField>

View File

@ -57,11 +57,11 @@ class departureDiameterModel
{ {
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
departureDiameterModel(const departureDiameterModel&); departureDiameterModel(const departureDiameterModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const departureDiameterModel&); void operator=(const departureDiameterModel&) = delete;
public: public:

View File

@ -57,11 +57,11 @@ class departureFrequencyModel
{ {
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
departureFrequencyModel(const departureFrequencyModel&); departureFrequencyModel(const departureFrequencyModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const departureFrequencyModel&); void operator=(const departureFrequencyModel&) = delete;
public: public:

View File

@ -57,11 +57,11 @@ class nucleationSiteModel
{ {
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
nucleationSiteModel(const nucleationSiteModel&); nucleationSiteModel(const nucleationSiteModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const nucleationSiteModel&); void operator=(const nucleationSiteModel&) = delete;
public: public:

View File

@ -55,11 +55,11 @@ class partitioningModel
{ {
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
partitioningModel(const partitioningModel&); partitioningModel(const partitioningModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const partitioningModel&); void operator=(const partitioningModel&) = delete;
public: public:

View File

@ -52,11 +52,11 @@ class conductivityModel
{ {
// Private member functions // Private member functions
//- Disallow default bitwise copy construct //- No copy construct
conductivityModel(const conductivityModel&); conductivityModel(const conductivityModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const conductivityModel&); void operator=(const conductivityModel&) = delete;
protected: protected:

View File

@ -53,11 +53,11 @@ class frictionalStressModel
{ {
// Private member functions // Private member functions
//- Disallow default bitwise copy construct //- No copy construct
frictionalStressModel(const frictionalStressModel&); frictionalStressModel(const frictionalStressModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const frictionalStressModel&); void operator=(const frictionalStressModel&) = delete;
protected: protected:

View File

@ -52,11 +52,11 @@ class granularPressureModel
{ {
// Private member functions // Private member functions
//- Disallow default bitwise copy construct //- No copy construct
granularPressureModel(const granularPressureModel&); granularPressureModel(const granularPressureModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const granularPressureModel&); void operator=(const granularPressureModel&) = delete;
protected: protected:

View File

@ -147,11 +147,11 @@ class kineticTheoryModel
void correctNut() void correctNut()
{} {}
//- Disallow default bitwise copy construct //- No copy construct
kineticTheoryModel(const kineticTheoryModel&); kineticTheoryModel(const kineticTheoryModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const kineticTheoryModel&); void operator=(const kineticTheoryModel&) = delete;
public: public:

View File

@ -52,11 +52,11 @@ class radialModel
{ {
// Private member functions // Private member functions
//- Disallow default bitwise copy construct //- No copy construct
radialModel(const radialModel&); radialModel(const radialModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const radialModel&); void operator=(const radialModel&) = delete;
protected: protected:

View File

@ -54,11 +54,11 @@ class viscosityModel
{ {
// Private member functions // Private member functions
//- Disallow default bitwise copy construct //- No copy construct
viscosityModel(const viscosityModel&); viscosityModel(const viscosityModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const viscosityModel&); void operator=(const viscosityModel&) = delete;
protected: protected:

View File

@ -102,11 +102,11 @@ class phasePressureModel
void correctNut() void correctNut()
{} {}
//- Disallow default bitwise copy construct //- No copy construct
phasePressureModel(const phasePressureModel&); phasePressureModel(const phasePressureModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const phasePressureModel&); void operator=(const phasePressureModel&) = delete;
public: public:

View File

@ -58,11 +58,11 @@ class wallDependentModel
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
wallDependentModel(const wallDependentModel&); wallDependentModel(const wallDependentModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const wallDependentModel&); void operator=(const wallDependentModel&) = delete;
public: public:

View File

@ -52,11 +52,11 @@ class conductivityModel
{ {
// Private member functions // Private member functions
//- Disallow default bitwise copy construct //- No copy construct
conductivityModel(const conductivityModel&); conductivityModel(const conductivityModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const conductivityModel&); void operator=(const conductivityModel&) = delete;
protected: protected:

View File

@ -53,11 +53,11 @@ class frictionalStressModel
{ {
// Private member functions // Private member functions
//- Disallow default bitwise copy construct //- No copy construct
frictionalStressModel(const frictionalStressModel&); frictionalStressModel(const frictionalStressModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const frictionalStressModel&); void operator=(const frictionalStressModel&) = delete;
protected: protected:

View File

@ -52,11 +52,11 @@ class granularPressureModel
{ {
// Private member functions // Private member functions
//- Disallow default bitwise copy construct //- No copy construct
granularPressureModel(const granularPressureModel&); granularPressureModel(const granularPressureModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const granularPressureModel&); void operator=(const granularPressureModel&) = delete;
protected: protected:

View File

@ -147,11 +147,11 @@ class kineticTheoryModel
void correctNut() void correctNut()
{} {}
//- Disallow default bitwise copy construct //- No copy construct
kineticTheoryModel(const kineticTheoryModel&); kineticTheoryModel(const kineticTheoryModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const kineticTheoryModel&); void operator=(const kineticTheoryModel&) = delete;
public: public:

View File

@ -52,11 +52,11 @@ class radialModel
{ {
// Private member functions // Private member functions
//- Disallow default bitwise copy construct //- No copy construct
radialModel(const radialModel&); radialModel(const radialModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const radialModel&); void operator=(const radialModel&) = delete;
protected: protected:

View File

@ -54,11 +54,11 @@ class viscosityModel
{ {
// Private member functions // Private member functions
//- Disallow default bitwise copy construct //- No copy construct
viscosityModel(const viscosityModel&); viscosityModel(const viscosityModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const viscosityModel&); void operator=(const viscosityModel&) = delete;
protected: protected:

View File

@ -106,11 +106,11 @@ class phasePressureModel
void correctNut() void correctNut()
{} {}
//- Disallow default bitwise copy construct //- No copy construct
phasePressureModel(const phasePressureModel&); phasePressureModel(const phasePressureModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const phasePressureModel&); void operator=(const phasePressureModel&) = delete;
public: public:

View File

@ -81,11 +81,14 @@ class BlendedInterfacialModel
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
BlendedInterfacialModel(const BlendedInterfacialModel<modelType>&); BlendedInterfacialModel
(
const BlendedInterfacialModel&
) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const BlendedInterfacialModel<modelType>&); void operator=(const BlendedInterfacialModel<modelType>&) = delete;
//- Correct coeff/value on fixed flux boundary conditions //- Correct coeff/value on fixed flux boundary conditions
template<class GeometricField> template<class GeometricField>

View File

@ -113,8 +113,10 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow bitwise copy/assignment //- No copy construct
dictionaryTokens(const dictionaryTokens&) = delete; dictionaryTokens(const dictionaryTokens&) = delete;
//- No copy assignment
void operator=(const dictionaryTokens&) = delete; void operator=(const dictionaryTokens&) = delete;
@ -181,8 +183,10 @@ class dictionaryTokens::primitive_iterator
// Private Member Functions // Private Member Functions
//- Disallow bitwise copy/assignment //- No copy construct
primitive_iterator(const primitive_iterator&) = delete; primitive_iterator(const primitive_iterator&) = delete;
//- No copy assignment
void operator=(const primitive_iterator&) = delete; void operator=(const primitive_iterator&) = delete;
public: public:
@ -251,8 +255,10 @@ class dictionaryTokens::dictionary_iterator
// Private Member Functions // Private Member Functions
//- Disallow bitwise copy/assignment //- No copy construct
dictionary_iterator(const dictionary_iterator&) = delete; dictionary_iterator(const dictionary_iterator&) = delete;
//- No copy assignment
void operator=(const dictionary_iterator&) = delete; void operator=(const dictionary_iterator&) = delete;

View File

@ -159,11 +159,11 @@ class router
DynamicList<label>& route DynamicList<label>& route
) const; ) const;
//- Disallow default bitwise copy construct //- No copy construct
router(const router&); router(const router&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const router&); void operator=(const router&) = delete;
public: public:

View File

@ -91,11 +91,11 @@ class cellSplitter
const Map<labelList>& cellToCells const Map<labelList>& cellToCells
) const; ) const;
//- Disallow default bitwise copy construct //- No copy construct
cellSplitter(const cellSplitter&); cellSplitter(const cellSplitter&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const cellSplitter&); void operator=(const cellSplitter&) = delete;
public: public:

View File

@ -68,11 +68,11 @@ class edgeStats
direction getNormalDir(const twoDPointCorrector*) const; direction getNormalDir(const twoDPointCorrector*) const;
//- Disallow default bitwise copy construct //- No copy construct
edgeStats(const edgeStats&); edgeStats(const edgeStats&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const edgeStats&); void operator=(const edgeStats&) = delete;
public: public:

View File

@ -74,11 +74,11 @@ class hexBlock
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
hexBlock(const hexBlock&); hexBlock(const hexBlock&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const hexBlock&); void operator=(const hexBlock&) = delete;
//- Vertex addressing inside the block //- Vertex addressing inside the block
inline label vtxLabel(label i, label j, label k) const; inline label vtxLabel(label i, label j, label k) const;

View File

@ -67,11 +67,11 @@ class hexBlock
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
hexBlock(const hexBlock&); hexBlock(const hexBlock&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const hexBlock&); void operator=(const hexBlock&) = delete;
//- Vertex addressing inside the block //- Vertex addressing inside the block
inline label vtxLabel(label i, label j, label k) const; inline label vtxLabel(label i, label j, label k) const;

View File

@ -86,10 +86,10 @@ class extrudedMesh
); );
//- Disallow default bitwise copy construct //- No copy construct
extrudedMesh(const extrudedMesh&) = delete; extrudedMesh(const extrudedMesh&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const extrudedMesh&) = delete; void operator=(const extrudedMesh&) = delete;

View File

@ -87,11 +87,11 @@ class extrude2DMesh
//- Find extrusion direction //- Find extrusion direction
//void findExtrudeDirection(); //void findExtrudeDirection();
//- Disallow default bitwise copy construct //- No copy construct
extrude2DMesh(const extrude2DMesh&); extrude2DMesh(const extrude2DMesh&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const extrude2DMesh&); void operator=(const extrude2DMesh&) = delete;
public: public:

View File

@ -85,11 +85,11 @@ class patchToPoly2DMesh
void createPolyMeshComponents(); void createPolyMeshComponents();
//- Disallow default bitwise copy construct //- No copy construct
patchToPoly2DMesh(const patchToPoly2DMesh&); patchToPoly2DMesh(const patchToPoly2DMesh&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const patchToPoly2DMesh&); void operator=(const patchToPoly2DMesh&) = delete;
public: public:

View File

@ -70,11 +70,11 @@ class cv2DControls
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
cv2DControls(const cv2DControls&); cv2DControls(const cv2DControls&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const cv2DControls&); void operator=(const cv2DControls&) = delete;
public: public:

View File

@ -142,11 +142,11 @@ private:
const List<DynamicList<label>>& patchOwners const List<DynamicList<label>>& patchOwners
) const; ) const;
//- Disallow default bitwise copy construct //- No copy construct
DelaunayMesh(const DelaunayMesh<Triangulation>&); DelaunayMesh(const DelaunayMesh<Triangulation>&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const DelaunayMesh<Triangulation>&); void operator=(const DelaunayMesh<Triangulation>&) = delete;
public: public:

View File

@ -119,11 +119,14 @@ private:
labelPairHashSet& receivedVertices labelPairHashSet& receivedVertices
); );
//- Disallow default bitwise copy construct //- No copy construct
DistributedDelaunayMesh(const DistributedDelaunayMesh<Triangulation>&); DistributedDelaunayMesh
(
const DistributedDelaunayMesh&
) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const DistributedDelaunayMesh<Triangulation>&); void operator=(const DistributedDelaunayMesh<Triangulation>&) = delete;
public: public:

View File

@ -193,22 +193,4 @@ void Foam::PrintTable<KeyType, DataType>::print
} }
// * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * * //
template<class KeyType, class DataType>
void Foam::PrintTable<KeyType, DataType>::operator=
(
const PrintTable<KeyType, DataType>& rhs
)
{
// Check for assignment to self
if (this == &rhs)
{
FatalErrorInFunction
<< "Attempted assignment to self"
<< abort(FatalError);
}
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -82,8 +82,8 @@ class PrintTable
// Private Member Functions // Private Member Functions
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const PrintTable<KeyType, DataType>&); void operator=(const PrintTable<KeyType, DataType>&) = delete;
public: public:
@ -107,7 +107,7 @@ public:
// Member Functions // Member Functions
//- Add an entry (D) to the given key(K) //- Add an entry (D) to the given key(K)
void add(const KeyType& K, const DataType& D); inline void add(const KeyType& K, const DataType& D);
//- Print the table //- Print the table
void print void print

View File

@ -26,7 +26,7 @@ License
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class KeyType, class DataType> template<class KeyType, class DataType>
void Foam::PrintTable<KeyType, DataType>::add inline void Foam::PrintTable<KeyType, DataType>::add
( (
const KeyType& K, const KeyType& K,
const DataType& D const DataType& D
@ -35,8 +35,4 @@ void Foam::PrintTable<KeyType, DataType>::add
table_.set(K, D); table_.set(K, D);
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* // // ************************************************************************* //

View File

@ -177,11 +177,14 @@ class backgroundMeshDecomposition
//- Build the surface patch and search tree //- Build the surface patch and search tree
void buildPatchAndTree(); void buildPatchAndTree();
//- Disallow default bitwise copy construct //- No copy construct
backgroundMeshDecomposition(const backgroundMeshDecomposition&); backgroundMeshDecomposition
(
const backgroundMeshDecomposition&
) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const backgroundMeshDecomposition&); void operator=(const backgroundMeshDecomposition&) = delete;
public: public:

View File

@ -61,11 +61,11 @@ class cellAspectRatioControl
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
cellAspectRatioControl(const cellAspectRatioControl&); cellAspectRatioControl(const cellAspectRatioControl&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const cellAspectRatioControl&); void operator=(const cellAspectRatioControl&) = delete;
public: public:

View File

@ -85,11 +85,11 @@ class cellShapeControl
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
cellShapeControl(const cellShapeControl&); cellShapeControl(const cellShapeControl&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const cellShapeControl&); void operator=(const cellShapeControl&) = delete;
public: public:

View File

@ -83,11 +83,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
cellShapeControlMesh(const cellShapeControlMesh&); cellShapeControlMesh(const cellShapeControlMesh&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const cellShapeControlMesh&); void operator=(const cellShapeControlMesh&) = delete;
public: public:

View File

@ -71,11 +71,14 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
cellSizeAndAlignmentControl(const cellSizeAndAlignmentControl&); cellSizeAndAlignmentControl
(
const cellSizeAndAlignmentControl&
) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const cellSizeAndAlignmentControl&); void operator=(const cellSizeAndAlignmentControl&) = delete;
public: public:

View File

@ -68,11 +68,14 @@ class cellSizeAndAlignmentControls
label& maxPriority label& maxPriority
) const; ) const;
//- Disallow default bitwise copy construct //- No copy construct
cellSizeAndAlignmentControls(const cellSizeAndAlignmentControls&); cellSizeAndAlignmentControls
(
const cellSizeAndAlignmentControls&
) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const cellSizeAndAlignmentControls&); void operator=(const cellSizeAndAlignmentControls&) = delete;
public: public:

View File

@ -63,11 +63,11 @@ class fileControl
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
fileControl(const fileControl&); fileControl(const fileControl&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const fileControl&); void operator=(const fileControl&) = delete;
public: public:

View File

@ -88,11 +88,11 @@ class searchableSurfaceControl
// const vectorField& ptNormals // const vectorField& ptNormals
// ) const; // ) const;
//- Disallow default bitwise copy construct //- No copy construct
searchableSurfaceControl(const searchableSurfaceControl&); searchableSurfaceControl(const searchableSurfaceControl&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const searchableSurfaceControl&); void operator=(const searchableSurfaceControl&) = delete;
public: public:

View File

@ -99,11 +99,11 @@ class controlMeshRefinement
pointHit findDiscontinuities(const linePointRef& l) const; pointHit findDiscontinuities(const linePointRef& l) const;
//- Disallow default bitwise copy construct //- No copy construct
controlMeshRefinement(const controlMeshRefinement&); controlMeshRefinement(const controlMeshRefinement&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const controlMeshRefinement&); void operator=(const controlMeshRefinement&) = delete;
public: public:

View File

@ -91,11 +91,11 @@ class smoothAlignmentSolver
triad& t triad& t
) const; ) const;
//- Disallow default bitwise copy construct //- No copy construct
smoothAlignmentSolver(const smoothAlignmentSolver&); smoothAlignmentSolver(const smoothAlignmentSolver&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const smoothAlignmentSolver&); void operator=(const smoothAlignmentSolver&) = delete;
public: public:

View File

@ -110,11 +110,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
cellSizeFunction(const cellSizeFunction&); cellSizeFunction(const cellSizeFunction&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const cellSizeFunction&); void operator=(const cellSizeFunction&) = delete;
public: public:

View File

@ -67,11 +67,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
cellSizeCalculationType(const cellSizeCalculationType&); cellSizeCalculationType(const cellSizeCalculationType&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const cellSizeCalculationType&); void operator=(const cellSizeCalculationType&) = delete;
public: public:

View File

@ -75,11 +75,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
surfaceCellSizeFunction(const surfaceCellSizeFunction&); surfaceCellSizeFunction(const surfaceCellSizeFunction&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const surfaceCellSizeFunction&); void operator=(const surfaceCellSizeFunction&) = delete;
public: public:

View File

@ -850,11 +850,11 @@ private:
void writePointPairs(const fileName& fName) const; void writePointPairs(const fileName& fName) const;
//- Disallow default bitwise copy construct //- No copy construct
conformalVoronoiMesh(const conformalVoronoiMesh&); conformalVoronoiMesh(const conformalVoronoiMesh&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const conformalVoronoiMesh&); void operator=(const conformalVoronoiMesh&) = delete;
public: public:

View File

@ -133,11 +133,11 @@ class featurePointConformer
//- Create the points that will conform to the feature //- Create the points that will conform to the feature
void createFeaturePoints(DynamicList<Vb>& pts); void createFeaturePoints(DynamicList<Vb>& pts);
//- Disallow default bitwise copy construct //- No copy construct
featurePointConformer(const featurePointConformer&); featurePointConformer(const featurePointConformer&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const featurePointConformer&); void operator=(const featurePointConformer&) = delete;
public: public:

View File

@ -125,11 +125,11 @@ class conformationSurfaces
label& featureIndex label& featureIndex
); );
//- Disallow default bitwise copy construct //- No copy construct
conformationSurfaces(const conformationSurfaces&); conformationSurfaces(const conformationSurfaces&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const conformationSurfaces&); void operator=(const conformationSurfaces&) = delete;
public: public:

View File

@ -209,11 +209,11 @@ class cvControls
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
cvControls(const cvControls&); cvControls(const cvControls&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const cvControls&); void operator=(const cvControls&) = delete;
public: public:

View File

@ -68,11 +68,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
faceAreaWeightModel(const faceAreaWeightModel&); faceAreaWeightModel(const faceAreaWeightModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const faceAreaWeightModel&); void operator=(const faceAreaWeightModel&) = delete;
public: public:

View File

@ -87,11 +87,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
initialPointsMethod(const initialPointsMethod&); initialPointsMethod(const initialPointsMethod&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const initialPointsMethod&); void operator=(const initialPointsMethod&) = delete;
public: public:

View File

@ -70,11 +70,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
relaxationModel(const relaxationModel&); relaxationModel(const relaxationModel&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const relaxationModel&); void operator=(const relaxationModel&) = delete;
public: public:

View File

@ -59,11 +59,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
searchableBoxFeatures(const searchableBoxFeatures&); searchableBoxFeatures(const searchableBoxFeatures&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const searchableBoxFeatures&); void operator=(const searchableBoxFeatures&) = delete;
public: public:

View File

@ -63,11 +63,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
searchablePlateFeatures(const searchablePlateFeatures&); searchablePlateFeatures(const searchablePlateFeatures&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const searchablePlateFeatures&); void operator=(const searchablePlateFeatures&) = delete;
public: public:

View File

@ -60,11 +60,11 @@ class searchableSurfaceFeatures
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
searchableSurfaceFeatures(const searchableSurfaceFeatures&); searchableSurfaceFeatures(const searchableSurfaceFeatures&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const searchableSurfaceFeatures&); void operator=(const searchableSurfaceFeatures&) = delete;
public: public:

View File

@ -61,11 +61,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
triSurfaceMeshFeatures(const triSurfaceMeshFeatures&); triSurfaceMeshFeatures(const triSurfaceMeshFeatures&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const triSurfaceMeshFeatures&); void operator=(const triSurfaceMeshFeatures&) = delete;
public: public:

View File

@ -199,11 +199,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
CV2D(const CV2D&); CV2D(const CV2D&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const CV2D&); void operator=(const CV2D&) = delete;
//- Insert point and return it's index //- Insert point and return it's index

View File

@ -90,11 +90,11 @@ class shortEdgeFilter2D
labelList& patchSizes labelList& patchSizes
) const; ) const;
//- Disallow default bitwise copy construct //- No copy construct
shortEdgeFilter2D(const shortEdgeFilter2D&); shortEdgeFilter2D(const shortEdgeFilter2D&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const shortEdgeFilter2D&); void operator=(const shortEdgeFilter2D&) = delete;
public: public:

View File

@ -76,10 +76,10 @@ class mergePolyMesh
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
mergePolyMesh(const mergePolyMesh&) = delete; mergePolyMesh(const mergePolyMesh&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const mergePolyMesh&) = delete; void operator=(const mergePolyMesh&) = delete;

View File

@ -60,10 +60,10 @@ class mirrorFvMesh
// Private Member Functions // Private Member Functions
//- Disallow copy construct //- No copy construct
mirrorFvMesh(const mirrorFvMesh&) = delete; mirrorFvMesh(const mirrorFvMesh&) = delete;
//- Disallow copy assignment //- No copy assignment
void operator=(const mirrorFvMesh&) = delete; void operator=(const mirrorFvMesh&) = delete;

View File

@ -168,11 +168,11 @@ class meshDualiser
boolList& donePFaces // pFaces visited boolList& donePFaces // pFaces visited
) const; ) const;
//- Disallow default bitwise copy construct //- No copy construct
meshDualiser(const meshDualiser&); meshDualiser(const meshDualiser&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const meshDualiser&); void operator=(const meshDualiser&) = delete;
public: public:

View File

@ -71,11 +71,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
dimFieldDecomposer(const dimFieldDecomposer&); dimFieldDecomposer(const dimFieldDecomposer&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const dimFieldDecomposer&); void operator=(const dimFieldDecomposer&) = delete;
public: public:

View File

@ -252,11 +252,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
faFieldDecomposer(const faFieldDecomposer&); faFieldDecomposer(const faFieldDecomposer&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const faFieldDecomposer&); void operator=(const faFieldDecomposer&) = delete;
public: public:

View File

@ -68,11 +68,11 @@ class lagrangianFieldDecomposer
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
lagrangianFieldDecomposer(const lagrangianFieldDecomposer&); lagrangianFieldDecomposer(const lagrangianFieldDecomposer&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const lagrangianFieldDecomposer&); void operator=(const lagrangianFieldDecomposer&) = delete;
public: public:

View File

@ -125,11 +125,11 @@ private:
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
pointFieldDecomposer(const pointFieldDecomposer&); pointFieldDecomposer(const pointFieldDecomposer&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const pointFieldDecomposer&); void operator=(const pointFieldDecomposer&) = delete;
public: public:

View File

@ -80,11 +80,11 @@ class faFieldReconstructor
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
faFieldReconstructor(const faFieldReconstructor&); faFieldReconstructor(const faFieldReconstructor&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const faFieldReconstructor&); void operator=(const faFieldReconstructor&) = delete;
public: public:

View File

@ -84,11 +84,11 @@ class processorFaMeshes
//- Read all meshes //- Read all meshes
void read(); void read();
//- Disallow default bitwise copy construct //- No copy construct
processorFaMeshes(const processorFaMeshes&); processorFaMeshes(const processorFaMeshes&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const processorFaMeshes&); void operator=(const processorFaMeshes&) = delete;
public: public:

View File

@ -80,11 +80,11 @@ class parFvFieldReconstructor
//- Construct per-patch addressing //- Construct per-patch addressing
void createPatchFaceMaps(); void createPatchFaceMaps();
//- Disallow default bitwise copy construct //- No copy construct
parFvFieldReconstructor(const parFvFieldReconstructor&); parFvFieldReconstructor(const parFvFieldReconstructor&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const parFvFieldReconstructor&); void operator=(const parFvFieldReconstructor&) = delete;
public: public:

View File

@ -77,11 +77,11 @@ class parLagrangianRedistributor
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
parLagrangianRedistributor(const parLagrangianRedistributor&); parLagrangianRedistributor(const parLagrangianRedistributor&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const parLagrangianRedistributor&); void operator=(const parLagrangianRedistributor&) = delete;
public: public:

View File

@ -53,11 +53,14 @@ class passivePositionParticleCloud
{ {
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- No copy construct
passivePositionParticleCloud(const passivePositionParticleCloud&); passivePositionParticleCloud
(
const passivePositionParticleCloud&
) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const passivePositionParticleCloud&); void operator=(const passivePositionParticleCloud&) = delete;
public: public:

View File

@ -92,10 +92,10 @@ class lagrangianWriter
void writeVerts(); void writeVerts();
//- Disallow default bitwise copy construct //- No copy construct
lagrangianWriter(const lagrangianWriter&) = delete; lagrangianWriter(const lagrangianWriter&) = delete;
//- Disallow default bitwise assignment //- No copy assignment
void operator=(const lagrangianWriter&) = delete; void operator=(const lagrangianWriter&) = delete;

Some files were not shown because too many files have changed in this diff Show More