Make disallowed member functions private

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1977
This commit is contained in:
Henry Weller
2016-01-20 10:41:14 +00:00
parent 19f62b4f0d
commit 34d4cfaca3
17 changed files with 139 additions and 65 deletions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -89,12 +89,6 @@ protected:
// Protected Member Functions // Protected Member Functions
//- Disallow default bitwise copy construct
STARCD(const STARCD&);
//- Disallow default bitwise assignment
void operator=(const STARCD&);
//- Read the mesh from the file(s) //- Read the mesh from the file(s)
virtual bool readGeometry(const scalar scaleFactor = 1.0); virtual bool readGeometry(const scalar scaleFactor = 1.0);
@ -120,6 +114,17 @@ protected:
static bool readHeader(IFstream&, word fileSignature); static bool readHeader(IFstream&, word fileSignature);
private:
// Private member functions
//- Disallow default bitwise copy construct
STARCD(const STARCD&);
//- Disallow default bitwise assignment
void operator=(const STARCD&);
protected: protected:
enum cellType enum cellType

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -65,6 +65,11 @@ protected:
//- Return true if all convergence checks are satisfied //- Return true if all convergence checks are satisfied
bool criteriaSatisfied(); bool criteriaSatisfied();
private:
// Private member functions
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct
simpleControl(const simpleControl&); simpleControl(const simpleControl&);
@ -74,7 +79,6 @@ protected:
public: public:
// Static Data Members // Static Data Members
//- Run-time type information //- Run-time type information

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -96,8 +96,9 @@ protected:
wordList objectNames_; wordList objectNames_;
// Private Member Functions private:
// Private member functions
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct
removeRegisteredObject(const removeRegisteredObject&); removeRegisteredObject(const removeRegisteredObject&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -87,6 +87,11 @@ protected:
bool& firstDict bool& firstDict
); );
private:
// Private member functions
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct
writeDictionary(const writeDictionary&); writeDictionary(const writeDictionary&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -115,6 +115,11 @@ protected:
//- File header information //- File header information
virtual void writeFileHeader(const label i); virtual void writeFileHeader(const label i);
private:
// Private member functions
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct
cloudInfo(const cloudInfo&); cloudInfo(const cloudInfo&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -120,12 +120,6 @@ protected:
// Protected Member Functions // Protected Member Functions
//- Disallow default bitwise copy construct
fieldCoordinateSystemTransform(const fieldCoordinateSystemTransform&);
//- Disallow default bitwise assignment
void operator=(const fieldCoordinateSystemTransform&);
template<class Type> template<class Type>
void transform(const word& fieldName) const; void transform(const word& fieldName) const;
@ -133,6 +127,17 @@ protected:
void transformField(const Type& field) const; void transformField(const Type& field) const;
private:
// Private member functions
//- Disallow default bitwise copy construct
fieldCoordinateSystemTransform(const fieldCoordinateSystemTransform&);
//- Disallow default bitwise assignment
void operator=(const fieldCoordinateSystemTransform&);
public: public:
//- Runtime type information //- Runtime type information

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -96,7 +96,9 @@ protected:
bool active_; bool active_;
// Protected Member Functions private:
// Private member functions
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct
processorField(const processorField&); processorField(const processorField&);

View File

@ -118,12 +118,6 @@ protected:
// Protected Member Functions // Protected Member Functions
//- Disallow default bitwise copy construct
readFields(const readFields&);
//- Disallow default bitwise assignment
void operator=(const readFields&);
template<class Type> template<class Type>
void loadField void loadField
( (
@ -133,6 +127,17 @@ protected:
) const; ) const;
private:
// Private member functions
//- Disallow default bitwise copy construct
readFields(const readFields&);
//- Disallow default bitwise assignment
void operator=(const readFields&);
public: public:
//- Runtime type information //- Runtime type information

View File

@ -116,12 +116,6 @@ protected:
// Protected Member Functions // Protected Member Functions
//- Disallow default bitwise copy construct
surfaceInterpolateFields(const surfaceInterpolateFields&);
//- Disallow default bitwise assignment
void operator=(const surfaceInterpolateFields&);
template<class Type> template<class Type>
void interpolateFields void interpolateFields
( (
@ -129,6 +123,17 @@ protected:
) const; ) const;
private:
// Private member functions
//- Disallow default bitwise copy construct
surfaceInterpolateFields(const surfaceInterpolateFields&);
//- Disallow default bitwise assignment
void operator=(const surfaceInterpolateFields&);
public: public:
//- Runtime type information //- Runtime type information

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -123,7 +123,9 @@ protected:
stringList writeCalls_; stringList writeCalls_;
// Private Member Functions private:
// Private member functions
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct
systemCall(const systemCall&); systemCall(const systemCall&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -109,12 +109,6 @@ protected:
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct
residuals(const residuals&);
//- Disallow default bitwise assignment
void operator=(const residuals&);
//- Output field header information //- Output field header information
template<class Type> template<class Type>
void writeFileHeader(const word& fieldName); void writeFileHeader(const word& fieldName);
@ -123,6 +117,17 @@ protected:
virtual void writeFileHeader(const label i); virtual void writeFileHeader(const label i);
private:
// Private member functions
//- Disallow default bitwise copy construct
residuals(const residuals&);
//- Disallow default bitwise assignment
void operator=(const residuals&);
public: public:
//- Runtime type information //- Runtime type information

View File

@ -154,12 +154,6 @@ protected:
// Protected Member Functions // Protected Member Functions
//- Disallow default bitwise copy construct
turbulenceFields(const turbulenceFields&);
//- Disallow default bitwise assignment
void operator=(const turbulenceFields&);
//- Return true if compressible turbulence model is identified //- Return true if compressible turbulence model is identified
bool compressible(); bool compressible();
@ -172,6 +166,17 @@ protected:
); );
private:
// Private member functions
//- Disallow default bitwise copy construct
turbulenceFields(const turbulenceFields&);
//- Disallow default bitwise assignment
void operator=(const turbulenceFields&);
public: public:
//- Runtime type information //- Runtime type information

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -130,6 +130,11 @@ protected:
volVectorField& shearStress volVectorField& shearStress
); );
private:
// Private member functions
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct
wallShearStress(const wallShearStress&); wallShearStress(const wallShearStress&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -93,6 +93,11 @@ protected:
labelList& seedCells labelList& seedCells
) const; ) const;
private:
// Private member functions
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct
cellVolumeWeightMethod(const cellVolumeWeightMethod&); cellVolumeWeightMethod(const cellVolumeWeightMethod&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -98,6 +98,11 @@ protected:
label& tgtSeedI label& tgtSeedI
) const; ) const;
private:
// Private member functions
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct
directMethod(const directMethod&); directMethod(const directMethod&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -102,6 +102,11 @@ protected:
scalarListList& tgtToTgtWght scalarListList& tgtToTgtWght
) const; ) const;
private:
// Private member functions
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct
meshToMeshMethod(const meshToMeshMethod&); meshToMeshMethod(const meshToMeshMethod&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -87,12 +87,6 @@ protected:
// Protected member functions // Protected member functions
//- Disallow default bitwise copy construct
singleStepReactingMixture(const singleStepReactingMixture&);
//- Disallow default bitwise assignment
void operator=(const singleStepReactingMixture&);
//- Calculate qFuel //- Calculate qFuel
void calculateqFuel(); void calculateqFuel();
@ -103,6 +97,17 @@ protected:
void calculateMaxProducts(); void calculateMaxProducts();
private:
// Private member functions
//- Disallow default bitwise copy construct
singleStepReactingMixture(const singleStepReactingMixture&);
//- Disallow default bitwise assignment
void operator=(const singleStepReactingMixture&);
public: public:
//- The type of thermo package this mixture is instantiated for //- The type of thermo package this mixture is instantiated for