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
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -120,12 +120,6 @@ protected:
// Protected Member Functions
//- Disallow default bitwise copy construct
fieldCoordinateSystemTransform(const fieldCoordinateSystemTransform&);
//- Disallow default bitwise assignment
void operator=(const fieldCoordinateSystemTransform&);
template<class Type>
void transform(const word& fieldName) const;
@ -133,6 +127,17 @@ protected:
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:
//- Runtime type information

View File

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

View File

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

View File

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