Added copy constructors to classes with copy assignment operator defined

and copy assignment operator for classes with a copy constructor

This is often described as the rule of 3 (or rule of 5 in C++11 if move
constructors and assignment operators are also defined) and makes good sense in
ensuring consistency.  For classes in which the default bitwise copy constructor
or assignment operator are appropriate these are now specified explicitly using
the "= default" keyword if the other is explicitly defined fulfilling the rule
of 3 without the need to define the body of the function.
This commit is contained in:
Henry Weller
2019-06-05 23:32:22 +01:00
parent 74d45a1313
commit 00ae415b71
92 changed files with 200 additions and 642 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 | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -171,6 +171,8 @@ public:
inline indexedVertex(Cell_handle f); inline indexedVertex(Cell_handle f);
indexedVertex(const indexedVertex& p) = default;
// Member Functions // Member Functions

View File

@ -207,6 +207,9 @@ public:
//- Construct for a given DLListBase and link //- Construct for a given DLListBase and link
inline iterator(DLListBase&, link*); inline iterator(DLListBase&, link*);
//- Copy constructor
inline iterator(const iterator&) = default;
// Member operators // Member operators
inline void operator=(const iterator&); inline void operator=(const iterator&);
@ -245,6 +248,9 @@ public:
//- Construct from a non-const iterator //- Construct from a non-const iterator
inline const_iterator(const iterator&); inline const_iterator(const iterator&);
//- Copy constructor
inline const_iterator(const const_iterator&) = default;
// Member operators // Member operators
inline void operator=(const const_iterator&); inline void operator=(const const_iterator&);
@ -283,6 +289,12 @@ public:
//- Construct for a given DLListBase and link //- Construct for a given DLListBase and link
inline const_reverse_iterator(const DLListBase&, const link*); inline const_reverse_iterator(const DLListBase&, const link*);
//- Copy constructor
inline const_reverse_iterator
(
const const_reverse_iterator&
) = default;
// Member operators // Member operators
inline void operator=(const const_reverse_iterator&); inline void operator=(const const_reverse_iterator&);

View File

@ -190,6 +190,9 @@ public:
//- Construct for a given SLListBase and link //- Construct for a given SLListBase and link
inline iterator(SLListBase&, link*); inline iterator(SLListBase&, link*);
//- Copy constructor
inline iterator(const iterator&) = default;
// Member operators // Member operators
inline void operator=(const iterator&); inline void operator=(const iterator&);
@ -228,6 +231,8 @@ public:
//- Construct from a non-const iterator //- Construct from a non-const iterator
inline const_iterator(const iterator&); inline const_iterator(const iterator&);
//- Copy constructor
inline const_iterator(const const_iterator&) = default;
// Member operators // Member operators

View File

@ -138,9 +138,6 @@ public:
//- Construct from SLList //- Construct from SLList
explicit inline FixedList(const SLList<T>&); explicit inline FixedList(const SLList<T>&);
//- Copy constructor
inline FixedList(const FixedList<T, Size>&);
//- Construct from Istream //- Construct from Istream
FixedList(Istream&); FixedList(Istream&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -104,16 +104,6 @@ inline Foam::FixedList<T, Size>::FixedList(const SLList<T>& lst)
} }
template<class T, unsigned Size>
inline Foam::FixedList<T, Size>::FixedList(const FixedList<T, Size>& lst)
{
for (unsigned i=0; i<Size; i++)
{
v_[i] = lst[i];
}
}
template<class T, unsigned Size> template<class T, unsigned Size>
inline Foam::autoPtr<Foam::FixedList<T, Size>> inline Foam::autoPtr<Foam::FixedList<T, Size>>
Foam::FixedList<T, Size>::clone() const Foam::FixedList<T, Size>::clone() const

View File

@ -256,9 +256,14 @@ void Foam::PtrList<T>::shuffle(const labelUList& newToOld)
if (oldI >= 0 && oldI < this->size()) if (oldI >= 0 && oldI < this->size())
{ {
newPtrs_[newI] = this->ptrs_[oldI]; newPtrs_[newI] = this->ptrs_[oldI];
this->ptrs_[oldI] = nullptr;
} }
} }
// Delete all remaining pointers
clear();
// Take over new pointers
this->ptrs_.transfer(newPtrs_); this->ptrs_.transfer(newPtrs_);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -81,6 +81,9 @@ public:
const label startIndex const label startIndex
); );
//- Copy constructor
inline SubList(const SubList<T>& sl) = default;
// Member operators // Member operators

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -72,6 +72,9 @@ public:
//- Construct given the complete list and the addressing array //- Construct given the complete list and the addressing array
inline UIndirectList(const UList<T>&, const labelUList&); inline UIndirectList(const UList<T>&, const labelUList&);
//- Copy constructor
UIndirectList(const UIndirectList<T>&) = default;
// Member Functions // Member Functions

View File

@ -262,6 +262,9 @@ public:
const word& name const word& name
); );
//- Copy constructor
IOobject(const IOobject& io) = default;
//- Clone //- Clone
autoPtr<IOobject> clone() const autoPtr<IOobject> clone() const
{ {

View File

@ -208,6 +208,21 @@ public:
//- Print description of IOstream to Ostream //- Print description of IOstream to Ostream
void print(Ostream&) const; void print(Ostream&) const;
// Member operators
//- Assignment operator
void operator=(const ITstream& its)
{
Istream::operator=(its);
tokenList::operator=(its);
name_ = its.name_;
tokenIndex_ = 0;
setOpened();
setGood();
}
}; };

View File

@ -109,6 +109,9 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Copy constructor
valuePointPatchField(const valuePointPatchField<Type>&) = default;
//- Construct and return a clone setting internal field reference //- Construct and return a clone setting internal field reference
virtual autoPtr<pointPatchField<Type>> clone virtual autoPtr<pointPatchField<Type>> clone
( (

View File

@ -385,6 +385,19 @@ Type Foam::interpolationTable<Type>::rateOfChange(const scalar value) const
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class Type>
void Foam::interpolationTable<Type>::operator=
(
const interpolationTable& interpTable
)
{
List<Tuple2<scalar, Type>>::operator=(interpTable);
boundsHandling_ = interpTable.boundsHandling_;
fileName_ = interpTable.fileName_;
reader_ = interpTable.reader_; // note: steals reader. Used in write().
}
template<class Type> template<class Type>
const Foam::Tuple2<Foam::scalar, Type>& const Foam::Tuple2<Foam::scalar, Type>&
Foam::interpolationTable<Type>::operator[](const label i) const Foam::interpolationTable<Type>::operator[](const label i) const

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -166,6 +166,9 @@ public:
// Member Operators // Member Operators
//- Disallow default bitwise assignment
void operator=(const interpolationTable&);
//- Return an element of constant Tuple2<scalar, Type> //- Return an element of constant Tuple2<scalar, Type>
const Tuple2<scalar, Type>& operator[](const label) const; const Tuple2<scalar, Type>& operator[](const label) const;

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -71,6 +71,7 @@ class patchIdentifier
//- Optional groups patch belongs to //- Optional groups patch belongs to
wordList inGroups_; wordList inGroups_;
public: public:
// Constructors // Constructors

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -126,7 +126,6 @@ public:
// Member operators // Member operators
inline void operator=(const complex&);
inline void operator+=(const complex&); inline void operator+=(const complex&);
inline void operator-=(const complex&); inline void operator-=(const complex&);
inline void operator*=(const complex&); inline void operator*=(const complex&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -75,13 +75,6 @@ inline complex complex::conjugate() const
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
inline void complex::operator=(const complex& c)
{
re = c.re;
im = c.im;
}
inline void complex::operator+=(const complex& c) inline void complex::operator+=(const complex& c)
{ {
re += c.re; re += c.re;

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -41,18 +41,6 @@ Foam::Polynomial<PolySize>::Polynomial()
} }
template<int PolySize>
Foam::Polynomial<PolySize>::Polynomial
(
const Polynomial<PolySize>& poly
)
:
VectorSpace<Polynomial<PolySize>, scalar, PolySize>(poly),
logActive_(poly.logActive_),
logCoeff_(poly.logCoeff_)
{}
template<int PolySize> template<int PolySize>
Foam::Polynomial<PolySize>::Polynomial(const scalar coeffs[PolySize]) Foam::Polynomial<PolySize>::Polynomial(const scalar coeffs[PolySize])
: :

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -106,9 +106,6 @@ public:
//- Construct null, with all coefficients = 0.0 //- Construct null, with all coefficients = 0.0
Polynomial(); Polynomial();
//- Copy constructor
Polynomial(const Polynomial&);
//- Construct from C-array of coefficients //- Construct from C-array of coefficients
explicit Polynomial(const scalar coeffs[PolySize]); explicit Polynomial(const scalar coeffs[PolySize]);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -164,7 +164,6 @@ public:
// Member operators // Member operators
inline void operator=(const vectorTensorTransform&);
inline void operator&=(const vectorTensorTransform&); inline void operator&=(const vectorTensorTransform&);
inline void operator=(const vector&); inline void operator=(const vector&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -171,17 +171,6 @@ inline Foam::pointField Foam::vectorTensorTransform::invTransformPosition
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
inline void Foam::vectorTensorTransform::operator=
(
const vectorTensorTransform& tr
)
{
t_ = tr.t_;
R_ = tr.R_;
hasR_ = tr.hasR_;
}
inline void Foam::vectorTensorTransform::operator&= inline void Foam::vectorTensorTransform::operator&=
( (
const vectorTensorTransform& tr const vectorTensorTransform& tr

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -213,7 +213,6 @@ public:
// Member operators // Member operators
inline void operator=(const quaternion&);
inline void operator+=(const quaternion&); inline void operator+=(const quaternion&);
inline void operator-=(const quaternion&); inline void operator-=(const quaternion&);
inline void operator*=(const quaternion&); inline void operator*=(const quaternion&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -523,12 +523,6 @@ inline Foam::vector Foam::quaternion::eulerAngles
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
inline void Foam::quaternion::operator=(const quaternion& q)
{
w_ = q.w_;
v_ = q.v_;
}
inline void Foam::quaternion::operator+=(const quaternion& q) inline void Foam::quaternion::operator+=(const quaternion& q)
{ {
w_ += q.w_; w_ += q.w_;

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -130,7 +130,6 @@ public:
// Member operators // Member operators
inline void operator=(const septernion&);
inline void operator*=(const septernion&); inline void operator*=(const septernion&);
inline void operator=(const vector&); inline void operator=(const vector&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -93,12 +93,6 @@ inline Foam::vector Foam::septernion::invTransformPoint(const vector& v) const
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
inline void Foam::septernion::operator=(const septernion& tr)
{
t_ = tr.t_;
r_ = tr.r_;
}
inline void Foam::septernion::operator*=(const septernion& tr) inline void Foam::septernion::operator*=(const septernion& tr)
{ {
t_ = tr.t() + tr.r().invTransform(t_); t_ = tr.t() + tr.r().invTransform(t_);

View File

@ -57,14 +57,6 @@ Foam::boundaryPatch::boundaryPatch
{} {}
Foam::boundaryPatch::boundaryPatch(const boundaryPatch& p)
:
patchIdentifier(p.name(), p.index(), p.physicalType()),
size_(p.size()),
start_(p.start())
{}
Foam::boundaryPatch::boundaryPatch(const boundaryPatch& p, const label index) Foam::boundaryPatch::boundaryPatch(const boundaryPatch& p, const label index)
: :
patchIdentifier(p.name(), index, p.physicalType()), patchIdentifier(p.name(), index, p.physicalType()),

View File

@ -86,9 +86,6 @@ public:
const label index const label index
); );
//- Copy constructor
boundaryPatch(const boundaryPatch&);
//- Copy constructor, resetting the index //- Copy constructor, resetting the index
boundaryPatch(const boundaryPatch&, const label index); boundaryPatch(const boundaryPatch&, const label index);

View File

@ -139,9 +139,6 @@ public:
const vector& n const vector& n
); );
//- Copy constructor
inline directionInfo(const directionInfo&);
// Member Functions // Member Functions

View File

@ -29,7 +29,6 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Null constructor
inline Foam::directionInfo::directionInfo() inline Foam::directionInfo::directionInfo()
: :
index_(-3), index_(-3),
@ -37,7 +36,6 @@ inline Foam::directionInfo::directionInfo()
{} {}
// Construct from components
inline Foam::directionInfo::directionInfo inline Foam::directionInfo::directionInfo
( (
const label index, const label index,
@ -49,14 +47,6 @@ inline Foam::directionInfo::directionInfo
{} {}
// Copy constructor
inline Foam::directionInfo::directionInfo(const directionInfo& w2)
:
index_(w2.index()),
n_(w2.n())
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class TrackingData> template<class TrackingData>
@ -66,7 +56,6 @@ inline bool Foam::directionInfo::valid(TrackingData& td) const
} }
// No geometric data so never any problem on cyclics
template<class TrackingData> template<class TrackingData>
inline bool Foam::directionInfo::sameGeometry inline bool Foam::directionInfo::sameGeometry
( (
@ -81,7 +70,6 @@ inline bool Foam::directionInfo::sameGeometry
} }
// index_ is already offset in face
template<class TrackingData> template<class TrackingData>
inline void Foam::directionInfo::leaveDomain inline void Foam::directionInfo::leaveDomain
( (
@ -94,10 +82,6 @@ inline void Foam::directionInfo::leaveDomain
{} {}
// index_ is offset in face on other side. So reverse it here.
// (Note: f[0] on other domain is connected to f[0] in this domain,
// f[1] ,, f[size-1] ,,
// etc.)
template<class TrackingData> template<class TrackingData>
inline void Foam::directionInfo::enterDomain inline void Foam::directionInfo::enterDomain
( (
@ -117,7 +101,6 @@ inline void Foam::directionInfo::enterDomain
} }
// No geometric data.
template<class TrackingData> template<class TrackingData>
inline void Foam::directionInfo::transform inline void Foam::directionInfo::transform
( (
@ -128,7 +111,6 @@ inline void Foam::directionInfo::transform
{} {}
// Update this cell with neighbouring face information
template<class TrackingData> template<class TrackingData>
inline bool Foam::directionInfo::updateCell inline bool Foam::directionInfo::updateCell
( (
@ -209,7 +191,6 @@ inline bool Foam::directionInfo::updateCell
} }
// Update this face with neighbouring cell information
template<class TrackingData> template<class TrackingData>
inline bool Foam::directionInfo::updateFace inline bool Foam::directionInfo::updateFace
( (
@ -258,7 +239,6 @@ inline bool Foam::directionInfo::updateFace
} }
// Merge this with information on same face
template<class TrackingData> template<class TrackingData>
inline bool Foam::directionInfo::updateFace inline bool Foam::directionInfo::updateFace
( (
@ -298,15 +278,19 @@ inline bool Foam::directionInfo::equal
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
inline bool Foam::directionInfo::operator==(const Foam::directionInfo& rhs) inline bool Foam::directionInfo::operator==
const (
const Foam::directionInfo& rhs
) const
{ {
return index() == rhs.index() && n() == rhs.n(); return index() == rhs.index() && n() == rhs.n();
} }
inline bool Foam::directionInfo::operator!=(const Foam::directionInfo& rhs) inline bool Foam::directionInfo::operator!=
const (
const Foam::directionInfo& rhs
) const
{ {
return !(*this == rhs); return !(*this == rhs);
} }

View File

@ -87,8 +87,6 @@ public:
//- Construct from normal //- Construct from normal
inline wallNormalInfo(const vector& normal); inline wallNormalInfo(const vector& normal);
//- Copy constructor
inline wallNormalInfo(const wallNormalInfo&);
// Member Functions // Member Functions

View File

@ -27,7 +27,6 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
// Update this with w2 if not yet set.
template<class TrackingData> template<class TrackingData>
inline bool Foam::wallNormalInfo::update inline bool Foam::wallNormalInfo::update
( (
@ -58,27 +57,18 @@ inline bool Foam::wallNormalInfo::update
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Null constructor
inline Foam::wallNormalInfo::wallNormalInfo() inline Foam::wallNormalInfo::wallNormalInfo()
: :
normal_(point::max) normal_(point::max)
{} {}
// Construct from normal
inline Foam::wallNormalInfo::wallNormalInfo(const vector& normal) inline Foam::wallNormalInfo::wallNormalInfo(const vector& normal)
: :
normal_(normal) normal_(normal)
{} {}
// Copy constructor
inline Foam::wallNormalInfo::wallNormalInfo(const wallNormalInfo& wpt)
:
normal_(wpt.normal())
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
inline const Foam::vector& Foam::wallNormalInfo::normal() const inline const Foam::vector& Foam::wallNormalInfo::normal() const
@ -94,7 +84,6 @@ inline bool Foam::wallNormalInfo::valid(TrackingData& td) const
} }
// No geometric data so never any problem on cyclics
template<class TrackingData> template<class TrackingData>
inline bool Foam::wallNormalInfo::sameGeometry inline bool Foam::wallNormalInfo::sameGeometry
( (
@ -108,7 +97,6 @@ inline bool Foam::wallNormalInfo::sameGeometry
} }
// No geometric data.
template<class TrackingData> template<class TrackingData>
inline void Foam::wallNormalInfo::leaveDomain inline void Foam::wallNormalInfo::leaveDomain
( (
@ -121,7 +109,6 @@ inline void Foam::wallNormalInfo::leaveDomain
{} {}
// No geometric data.
template<class TrackingData> template<class TrackingData>
inline void Foam::wallNormalInfo::transform inline void Foam::wallNormalInfo::transform
( (
@ -132,7 +119,6 @@ inline void Foam::wallNormalInfo::transform
{} {}
// No geometric data.
template<class TrackingData> template<class TrackingData>
inline void Foam::wallNormalInfo::enterDomain inline void Foam::wallNormalInfo::enterDomain
( (
@ -145,7 +131,6 @@ inline void Foam::wallNormalInfo::enterDomain
{} {}
// Update this with w2 if w2 nearer to pt.
template<class TrackingData> template<class TrackingData>
inline bool Foam::wallNormalInfo::updateCell inline bool Foam::wallNormalInfo::updateCell
( (
@ -161,7 +146,6 @@ inline bool Foam::wallNormalInfo::updateCell
} }
// Update this with w2 if w2 nearer to pt.
template<class TrackingData> template<class TrackingData>
inline bool Foam::wallNormalInfo::updateFace inline bool Foam::wallNormalInfo::updateFace
( (
@ -177,7 +161,6 @@ inline bool Foam::wallNormalInfo::updateFace
} }
// Update this with w2 if w2 nearer to pt.
template<class TrackingData> template<class TrackingData>
inline bool Foam::wallNormalInfo::updateFace inline bool Foam::wallNormalInfo::updateFace
( (
@ -205,15 +188,19 @@ inline bool Foam::wallNormalInfo::equal
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
inline bool Foam::wallNormalInfo::operator==(const Foam::wallNormalInfo& rhs) inline bool Foam::wallNormalInfo::operator==
const (
const Foam::wallNormalInfo& rhs
) const
{ {
return normal() == rhs.normal(); return normal() == rhs.normal();
} }
inline bool Foam::wallNormalInfo::operator!=(const Foam::wallNormalInfo& rhs) inline bool Foam::wallNormalInfo::operator!=
const (
const Foam::wallNormalInfo& rhs
) const
{ {
return !(*this == rhs); return !(*this == rhs);
} }

View File

@ -122,9 +122,6 @@ public:
//- Construct from origin, distance //- Construct from origin, distance
inline externalPointEdgePoint(const point&, const scalar); inline externalPointEdgePoint(const point&, const scalar);
//- Copy constructor
inline externalPointEdgePoint(const externalPointEdgePoint&);
// Member Functions // Member Functions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -133,16 +133,6 @@ inline Foam::externalPointEdgePoint::externalPointEdgePoint
{} {}
inline Foam::externalPointEdgePoint::externalPointEdgePoint
(
const externalPointEdgePoint& wpt
)
:
origin_(wpt.origin()),
distSqr_(wpt.distSqr())
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
inline const Foam::point& Foam::externalPointEdgePoint::origin() const inline const Foam::point& Foam::externalPointEdgePoint::origin() const

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -118,6 +118,9 @@ public:
//- Construct from Istream and engineTime //- Construct from Istream and engineTime
ignitionSite(Istream&, const engineTime&, const fvMesh&); ignitionSite(Istream&, const engineTime&, const fvMesh&);
//- Copy constructor
ignitionSite(const ignitionSite&) = default;
//- Clone //- Clone
autoPtr<ignitionSite> clone() const autoPtr<ignitionSite> clone() const
{ {

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -55,21 +55,6 @@ Foam::referredWallFace::referredWallFace
} }
Foam::referredWallFace::referredWallFace(const referredWallFace& rWF)
:
face(rWF),
pts_(rWF.pts_),
patchi_(rWF.patchi_)
{
if (this->size() != pts_.size())
{
FatalErrorInFunction
<< "Face and pointField are not the same size. " << nl << (*this)
<< abort(FatalError);
}
}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::referredWallFace::~referredWallFace() Foam::referredWallFace::~referredWallFace()

View File

@ -87,9 +87,6 @@ public:
label patchi label patchi
); );
//- Copy constructor
referredWallFace(const referredWallFace&);
//- Destructor //- Destructor
~referredWallFace(); ~referredWallFace();

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -23,8 +23,6 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
const Foam::pointField& Foam::referredWallFace::points() const const Foam::pointField& Foam::referredWallFace::points() const

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -388,27 +388,6 @@ void Foam::CollisionRecordList<PairType, WallType>::update()
} }
// * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * * //
template<class PairType, class WallType>
void Foam::CollisionRecordList<PairType, WallType>::operator=
(
const CollisionRecordList<PairType, WallType>& rhs
)
{
// Check for assignment to self
if (this == &rhs)
{
FatalErrorInFunction
<< "Attempted assignment to self"
<< abort(FatalError);
}
pairRecords_ = rhs.pairRecords_;
wallRecords_ = rhs.wallRecords_;
}
// * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * * //
template<class PairType, class WallType> template<class PairType, class WallType>

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -194,11 +194,6 @@ public:
void update(); void update();
// Member Operators
void operator=(const CollisionRecordList&);
// Friend Operators // Friend Operators
friend bool operator== <PairType, WallType> friend bool operator== <PairType, WallType>

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -193,16 +193,6 @@ Foam::phaseProperties::phaseProperties()
{} {}
Foam::phaseProperties::phaseProperties(const phaseProperties& pp)
:
phase_(pp.phase_),
stateLabel_(pp.stateLabel_),
names_(pp.names_),
Y_(pp.Y_),
carrierIds_(pp.carrierIds_)
{}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::phaseProperties::~phaseProperties() Foam::phaseProperties::~phaseProperties()

View File

@ -122,9 +122,6 @@ public:
//- Construct from Istream //- Construct from Istream
phaseProperties(Istream&); phaseProperties(Istream&);
//- Copy constructor
phaseProperties(const phaseProperties&);
//- Destructor //- Destructor
~phaseProperties(); ~phaseProperties();

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -103,9 +103,6 @@ public:
// Operators // Operators
//- Assignment
inline void operator=(const forceSuSp& susp);
//- Addition //- Addition
inline void operator+=(const forceSuSp& susp); inline void operator+=(const forceSuSp& susp);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -79,13 +79,6 @@ inline Foam::scalar& Foam::forceSuSp::Sp()
// * * * * * * * * * * * * * * * Operators * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Operators * * * * * * * * * * * * * * * * * //
inline void Foam::forceSuSp::operator=(const forceSuSp& susp)
{
first() = susp.first();
second() = susp.second();
}
inline void Foam::forceSuSp::operator+=(const forceSuSp& susp) inline void Foam::forceSuSp::operator+=(const forceSuSp& susp)
{ {
first() += susp.first(); first() += susp.first();

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -69,21 +69,6 @@ SingleKineticRateDevolatilisation
} }
template<class CloudType>
Foam::SingleKineticRateDevolatilisation<CloudType>::
SingleKineticRateDevolatilisation
(
const SingleKineticRateDevolatilisation<CloudType>& dm
)
:
DevolatilisationModel<CloudType>(dm),
volatileData_(dm.volatileData_),
YVolatile0_(dm.YVolatile0_),
volatileToGasMap_(dm.volatileToGasMap_),
residualCoeff_(dm.residualCoeff_)
{}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template<class CloudType> template<class CloudType>

View File

@ -106,14 +106,6 @@ class SingleKineticRateDevolatilisation
E_(readScalar(is)) E_(readScalar(is))
{} {}
//- Copy constructor
volatileData(const volatileData& vd)
:
name_(vd.name_),
A1_(vd.A1_),
E_(vd.E_)
{}
//- Destructor //- Destructor
~volatileData() ~volatileData()
@ -203,12 +195,6 @@ public:
CloudType& owner CloudType& owner
); );
//- Construct copy
SingleKineticRateDevolatilisation
(
const SingleKineticRateDevolatilisation<CloudType>& dm
);
//- Construct and return a clone //- Construct and return a clone
virtual autoPtr<DevolatilisationModel<CloudType>> clone() const virtual autoPtr<DevolatilisationModel<CloudType>> clone() const
{ {

View File

@ -87,9 +87,6 @@ public:
const vector& v const vector& v
); );
//- Copy constructor
inline pointData(const pointData&);
// Member Functions // Member Functions

View File

@ -28,7 +28,6 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Null constructor
inline Foam::pointData::pointData() inline Foam::pointData::pointData()
: :
pointEdgePoint(), pointEdgePoint(),
@ -37,7 +36,6 @@ inline Foam::pointData::pointData()
{} {}
// Construct from origin, distance
inline Foam::pointData::pointData inline Foam::pointData::pointData
( (
const point& origin, const point& origin,
@ -52,15 +50,6 @@ inline Foam::pointData::pointData
{} {}
// Copy constructor
inline Foam::pointData::pointData(const pointData& wpt)
:
pointEdgePoint(wpt),
s_(wpt.s()),
v_(wpt.v())
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
inline Foam::scalar Foam::pointData::s() const inline Foam::scalar Foam::pointData::s() const

View File

@ -111,9 +111,6 @@ public:
//- Construct from origin, distance //- Construct from origin, distance
inline patchEdgeFaceInfo(const point&, const scalar); inline patchEdgeFaceInfo(const point&, const scalar);
//- Copy constructor
inline patchEdgeFaceInfo(const patchEdgeFaceInfo&);
// Member Functions // Member Functions

View File

@ -117,7 +117,6 @@ inline bool Foam::patchEdgeFaceInfo::update
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Null constructor
inline Foam::patchEdgeFaceInfo::patchEdgeFaceInfo() inline Foam::patchEdgeFaceInfo::patchEdgeFaceInfo()
: :
origin_(point::max), origin_(point::max),
@ -125,7 +124,6 @@ inline Foam::patchEdgeFaceInfo::patchEdgeFaceInfo()
{} {}
// Construct from origin, distance
inline Foam::patchEdgeFaceInfo::patchEdgeFaceInfo inline Foam::patchEdgeFaceInfo::patchEdgeFaceInfo
( (
const point& origin, const point& origin,
@ -137,14 +135,6 @@ inline Foam::patchEdgeFaceInfo::patchEdgeFaceInfo
{} {}
// Copy constructor
inline Foam::patchEdgeFaceInfo::patchEdgeFaceInfo(const patchEdgeFaceInfo& wpt)
:
origin_(wpt.origin()),
distSqr_(wpt.distSqr())
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
inline const Foam::point& Foam::patchEdgeFaceInfo::origin() const inline const Foam::point& Foam::patchEdgeFaceInfo::origin() const

View File

@ -112,9 +112,6 @@ public:
//- Construct from origin, distance //- Construct from origin, distance
inline pointEdgePoint(const point&, const scalar); inline pointEdgePoint(const point&, const scalar);
//- Copy constructor
inline pointEdgePoint(const pointEdgePoint&);
// Member Functions // Member Functions

View File

@ -117,7 +117,6 @@ inline bool Foam::pointEdgePoint::update
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Null constructor
inline Foam::pointEdgePoint::pointEdgePoint() inline Foam::pointEdgePoint::pointEdgePoint()
: :
origin_(point::max), origin_(point::max),
@ -125,7 +124,6 @@ inline Foam::pointEdgePoint::pointEdgePoint()
{} {}
// Construct from origin, distance
inline Foam::pointEdgePoint::pointEdgePoint inline Foam::pointEdgePoint::pointEdgePoint
( (
const point& origin, const point& origin,
@ -137,14 +135,6 @@ inline Foam::pointEdgePoint::pointEdgePoint
{} {}
// Copy constructor
inline Foam::pointEdgePoint::pointEdgePoint(const pointEdgePoint& wpt)
:
origin_(wpt.origin()),
distSqr_(wpt.distSqr())
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
inline const Foam::point& Foam::pointEdgePoint::origin() const inline const Foam::point& Foam::pointEdgePoint::origin() const

View File

@ -93,9 +93,6 @@ public:
//- Construct from cType //- Construct from cType
inline cellInfo(const label); inline cellInfo(const label);
//- Copy constructor
inline cellInfo(const cellInfo&);
// Member Functions // Member Functions

View File

@ -92,27 +92,18 @@ inline bool Foam::cellInfo::update
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Null constructor
inline Foam::cellInfo::cellInfo() inline Foam::cellInfo::cellInfo()
: :
type_(cellClassification::NOTSET) type_(cellClassification::NOTSET)
{} {}
// Construct from components
inline Foam::cellInfo::cellInfo(const label type) inline Foam::cellInfo::cellInfo(const label type)
: :
type_(type) type_(type)
{} {}
// Copy constructor
inline Foam::cellInfo::cellInfo(const cellInfo& w2)
:
type_(w2.type())
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class TrackingData> template<class TrackingData>
@ -122,7 +113,6 @@ inline bool Foam::cellInfo::valid(TrackingData& td) const
} }
// No geometric data so never any problem on cyclics
template<class TrackingData> template<class TrackingData>
inline bool Foam::cellInfo::sameGeometry inline bool Foam::cellInfo::sameGeometry
( (
@ -137,7 +127,6 @@ inline bool Foam::cellInfo::sameGeometry
} }
// No geometric data.
template<class TrackingData> template<class TrackingData>
inline void Foam::cellInfo::leaveDomain inline void Foam::cellInfo::leaveDomain
( (
@ -150,7 +139,6 @@ inline void Foam::cellInfo::leaveDomain
{} {}
// No geometric data.
template<class TrackingData> template<class TrackingData>
inline void Foam::cellInfo::transform inline void Foam::cellInfo::transform
( (
@ -161,7 +149,6 @@ inline void Foam::cellInfo::transform
{} {}
// No geometric data.
template<class TrackingData> template<class TrackingData>
inline void Foam::cellInfo::enterDomain inline void Foam::cellInfo::enterDomain
( (
@ -174,7 +161,6 @@ inline void Foam::cellInfo::enterDomain
{} {}
// Update this with neighbour information
template<class TrackingData> template<class TrackingData>
inline bool Foam::cellInfo::updateCell inline bool Foam::cellInfo::updateCell
( (
@ -198,7 +184,6 @@ inline bool Foam::cellInfo::updateCell
} }
// Update this with neighbour information
template<class TrackingData> template<class TrackingData>
inline bool Foam::cellInfo::updateFace inline bool Foam::cellInfo::updateFace
( (
@ -221,7 +206,7 @@ inline bool Foam::cellInfo::updateFace
); );
} }
// Update this with neighbour information
template<class TrackingData> template<class TrackingData>
inline bool Foam::cellInfo::updateFace inline bool Foam::cellInfo::updateFace
( (

View File

@ -97,9 +97,6 @@ public:
//- Construct from origin, distance //- Construct from origin, distance
inline wallPoint(const point& origin, const scalar distSqr); inline wallPoint(const point& origin, const scalar distSqr);
//- Copy constructor
inline wallPoint(const wallPoint&);
// Member Functions // Member Functions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -96,13 +96,6 @@ inline Foam::wallPoint::wallPoint(const point& origin, const scalar distSqr)
{} {}
inline Foam::wallPoint::wallPoint(const wallPoint& wpt)
:
origin_(wpt.origin()),
distSqr_(wpt.distSqr())
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
inline const Foam::point& Foam::wallPoint::origin() const inline const Foam::point& Foam::wallPoint::origin() const

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2016-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2016-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -175,6 +175,9 @@ public:
// to the given degrees of freedom of the joint // to the given degrees of freedom of the joint
inline joint(const rigidBodyModel& model, const label nDoF); inline joint(const rigidBodyModel& model, const label nDoF);
//- Copy constructor
joint(const joint&) = default;
//- Clone this joint (needed by PtrList) //- Clone this joint (needed by PtrList)
virtual autoPtr<joint> clone() const = 0; virtual autoPtr<joint> clone() const = 0;

View File

@ -399,14 +399,12 @@ void Foam::cuttingPlane::remapFaces
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct without cutting
Foam::cuttingPlane::cuttingPlane(const plane& pln) Foam::cuttingPlane::cuttingPlane(const plane& pln)
: :
plane(pln) plane(pln)
{} {}
// Construct from plane and mesh reference, restricted to a list of cells
Foam::cuttingPlane::cuttingPlane Foam::cuttingPlane::cuttingPlane
( (
const plane& pln, const plane& pln,
@ -421,22 +419,4 @@ Foam::cuttingPlane::cuttingPlane
} }
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
void Foam::cuttingPlane::operator=(const cuttingPlane& rhs)
{
// Check for assignment to self
if (this == &rhs)
{
FatalErrorInFunction
<< "Attempted assignment to self"
<< abort(FatalError);
}
static_cast<MeshStorage&>(*this) = rhs;
static_cast<plane&>(*this) = rhs;
cutCells_ = rhs.cutCells();
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -174,11 +174,6 @@ public:
template<class Type> template<class Type>
tmp<Field<Type>> sample(const tmp<Field<Type>>&) const; tmp<Field<Type>> sample(const tmp<Field<Type>>&) const;
// Member Operators
void operator=(const cuttingPlane&);
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -59,20 +59,6 @@ Foam::sixDoFRigidBodyMotionState::sixDoFRigidBodyMotionState
{} {}
Foam::sixDoFRigidBodyMotionState::sixDoFRigidBodyMotionState
(
const sixDoFRigidBodyMotionState& sDoFRBMS
)
:
centreOfRotation_(sDoFRBMS.centreOfRotation()),
Q_(sDoFRBMS.Q()),
v_(sDoFRBMS.v()),
a_(sDoFRBMS.a()),
pi_(sDoFRBMS.pi()),
tau_(sDoFRBMS.tau())
{}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::sixDoFRigidBodyMotionState::~sixDoFRigidBodyMotionState() Foam::sixDoFRigidBodyMotionState::~sixDoFRigidBodyMotionState()

View File

@ -100,9 +100,6 @@ public:
//- Construct from dictionary //- Construct from dictionary
sixDoFRigidBodyMotionState(const dictionary& dict); sixDoFRigidBodyMotionState(const dictionary& dict);
//- Copy constructor
sixDoFRigidBodyMotionState(const sixDoFRigidBodyMotionState&);
//- Destructor //- Destructor
~sixDoFRigidBodyMotionState(); ~sixDoFRigidBodyMotionState();

View File

@ -86,14 +86,6 @@ Foam::surfZone::surfZone
{} {}
Foam::surfZone::surfZone(const surfZone& zone)
:
surfZoneIdentifier(zone, zone.index()),
size_(zone.size()),
start_(zone.start())
{}
Foam::surfZone::surfZone(const surfZone& zone, const label index) Foam::surfZone::surfZone(const surfZone& zone, const label index)
: :
surfZoneIdentifier(zone, index), surfZoneIdentifier(zone, index),

View File

@ -105,9 +105,6 @@ public:
const label index const label index
); );
//- Copy constructor
surfZone(const surfZone&);
//- Construct from another zone, resetting the index //- Construct from another zone, resetting the index
surfZone(const surfZone&, const label index); surfZone(const surfZone&, const label index);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -133,7 +133,6 @@ public:
// Member operators // Member operators
inline void operator=(const constAnIsoSolidTransport&);
inline void operator+=(const constAnIsoSolidTransport&); inline void operator+=(const constAnIsoSolidTransport&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -97,16 +97,6 @@ alphah(const scalar p, const scalar T) const
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class Thermo>
inline void Foam::constAnIsoSolidTransport<Thermo>::operator=
(
const constAnIsoSolidTransport<Thermo>& ct
)
{
kappa_ = ct.kappa_;
}
template<class Thermo> template<class Thermo>
inline void Foam::constAnIsoSolidTransport<Thermo>::operator+= inline void Foam::constAnIsoSolidTransport<Thermo>::operator+=
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -134,7 +134,6 @@ public:
// Member operators // Member operators
inline void operator=(const constIsoSolidTransport&);
inline void operator+=(const constIsoSolidTransport&); inline void operator+=(const constIsoSolidTransport&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -97,17 +97,6 @@ alphah(const scalar p, const scalar T) const
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class thermo>
inline void Foam::constIsoSolidTransport<thermo>::operator=
(
const constIsoSolidTransport<thermo>& ct
)
{
thermo::operator=(ct);
kappa_ = ct.kappa_;
}
template<class thermo> template<class thermo>
inline void Foam::constIsoSolidTransport<thermo>::operator+= inline void Foam::constIsoSolidTransport<thermo>::operator+=
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -142,7 +142,6 @@ public:
// Member operators // Member operators
inline void operator=(const exponentialSolidTransport&);
inline void operator+=(const exponentialSolidTransport&); inline void operator+=(const exponentialSolidTransport&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -109,19 +109,6 @@ alphah(const scalar p, const scalar T) const
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class Thermo>
inline void Foam::exponentialSolidTransport<Thermo>::operator=
(
const exponentialSolidTransport<Thermo>& ct
)
{
kappa0_ = ct.kappa0_;
n0_ = ct.n0_;
Tref_ = ct.Tref_;
}
template<class Thermo> template<class Thermo>
inline void Foam::exponentialSolidTransport<Thermo>::operator+= inline void Foam::exponentialSolidTransport<Thermo>::operator+=
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -177,7 +177,6 @@ public:
// Member operators // Member operators
inline void operator=(const polynomialSolidTransport&);
inline void operator+=(const polynomialSolidTransport&); inline void operator+=(const polynomialSolidTransport&);
inline void operator*=(const scalar); inline void operator*=(const scalar);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -124,18 +124,6 @@ inline Foam::scalar Foam::polynomialSolidTransport<Thermo, PolySize>::alphah
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class Thermo, int PolySize>
inline void Foam::polynomialSolidTransport<Thermo, PolySize>::operator=
(
const polynomialSolidTransport<Thermo, PolySize>& pt
)
{
Thermo::operator=(pt);
kappaCoeffs_ = pt.kappaCoeffs_;
}
template<class Thermo, int PolySize> template<class Thermo, int PolySize>
inline void Foam::polynomialSolidTransport<Thermo, PolySize>::operator+= inline void Foam::polynomialSolidTransport<Thermo, PolySize>::operator+=
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -197,7 +197,6 @@ public:
// Member operators // Member operators
inline void operator=(const icoPolynomial&);
inline void operator+=(const icoPolynomial&); inline void operator+=(const icoPolynomial&);
inline void operator*=(const scalar); inline void operator*=(const scalar);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -178,18 +178,6 @@ inline Foam::scalar Foam::icoPolynomial<Specie, PolySize>::CpMCv
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class Specie, int PolySize>
inline void Foam::icoPolynomial<Specie, PolySize>::operator=
(
const icoPolynomial<Specie, PolySize>& ip
)
{
Specie::operator=(ip);
rhoCoeffs_ = ip.rhoCoeffs_;
}
template<class Specie, int PolySize> template<class Specie, int PolySize>
inline void Foam::icoPolynomial<Specie, PolySize>::operator+= inline void Foam::icoPolynomial<Specie, PolySize>::operator+=
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -175,7 +175,6 @@ public:
// Member operators // Member operators
inline void operator=(const incompressiblePerfectGas&);
inline void operator+=(const incompressiblePerfectGas&); inline void operator+=(const incompressiblePerfectGas&);
inline void operator*=(const scalar); inline void operator*=(const scalar);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -179,17 +179,6 @@ inline Foam::scalar Foam::incompressiblePerfectGas<Specie>::CpMCv
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class Specie>
inline void Foam::incompressiblePerfectGas<Specie>::operator=
(
const incompressiblePerfectGas<Specie>& ipg
)
{
Specie::operator=(ipg);
pRef_ = ipg.pRef_;
}
template<class Specie> template<class Specie>
inline void Foam::incompressiblePerfectGas<Specie>::operator+= inline void Foam::incompressiblePerfectGas<Specie>::operator+=
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -61,20 +61,6 @@ class IrreversibleReaction
ReactionRate k_; ReactionRate k_;
// Private Member Functions
//- Disallow default bitwise assignment
void operator=
(
const IrreversibleReaction
<
ReactionType,
ReactionThermo,
ReactionRate
>&
);
public: public:
//- Runtime type information //- Runtime type information
@ -230,7 +216,21 @@ public:
//- Write //- Write
virtual void write(Ostream&) const; virtual void write(Ostream&) const; // Private Member Functions
// Member operators
//- Disallow default bitwise assignment
void operator=
(
const IrreversibleReaction
<
ReactionType,
ReactionThermo,
ReactionRate
>&
) = delete;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -63,16 +63,6 @@ class NonEquilibriumReversibleReaction
ReactionRate rk_; ReactionRate rk_;
// Private Member Functions
//- Disallow default bitwise assignment
void operator=
(
const NonEquilibriumReversibleReaction
<ReactionType, ReactionThermo, ReactionRate>&
);
public: public:
//- Runtime type information //- Runtime type information
@ -214,6 +204,20 @@ public:
//- Write //- Write
virtual void write(Ostream&) const; virtual void write(Ostream&) const;
// Member operators
//- Disallow default bitwise assignment
void operator=
(
const NonEquilibriumReversibleReaction
<
ReactionType,
ReactionThermo,
ReactionRate
>&
) = delete;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -62,20 +62,6 @@ class ReversibleReaction
ReactionRate k_; ReactionRate k_;
// Private Member Functions
//- Disallow default bitwise assignment
void operator=
(
const ReversibleReaction
<
ReactionType,
ReactionThermo,
ReactionRate
>&
);
public: public:
//- Runtime type information //- Runtime type information
@ -227,6 +213,20 @@ public:
//- Write //- Write
virtual void write(Ostream&) const; virtual void write(Ostream&) const;
// Member operators
//- Disallow default bitwise assignment
void operator=
(
const ReversibleReaction
<
ReactionType,
ReactionThermo,
ReactionRate
>&
) = delete;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -102,6 +102,9 @@ public:
//- Construct from dictionary //- Construct from dictionary
specie(const dictionary& dict); specie(const dictionary& dict);
//- Copy constructor
specie(const specie&) = default;
// Member Functions // Member Functions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -217,7 +217,6 @@ public:
// Member operators // Member operators
inline void operator=(const hPolynomialThermo&);
inline void operator+=(const hPolynomialThermo&); inline void operator+=(const hPolynomialThermo&);
inline void operator*=(const scalar); inline void operator*=(const scalar);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -158,22 +158,6 @@ inline Foam::scalar Foam::hPolynomialThermo<EquationOfState, PolySize>::dCpdT
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class EquationOfState, int PolySize>
inline void Foam::hPolynomialThermo<EquationOfState, PolySize>::operator=
(
const hPolynomialThermo<EquationOfState, PolySize>& pt
)
{
EquationOfState::operator=(pt);
Hf_ = pt.Hf_;
Sf_ = pt.Sf_;
CpCoeffs_ = pt.CpCoeffs_;
hCoeffs_ = pt.hCoeffs_;
sCoeffs_ = pt.sCoeffs_;
}
template<class EquationOfState, int PolySize> template<class EquationOfState, int PolySize>
inline void Foam::hPolynomialThermo<EquationOfState, PolySize>::operator+= inline void Foam::hPolynomialThermo<EquationOfState, PolySize>::operator+=
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2018-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -159,10 +159,7 @@ public:
// Member operators // Member operators
inline void operator=(const WLFTransport&);
inline void operator+=(const WLFTransport&); inline void operator+=(const WLFTransport&);
inline void operator*=(const scalar); inline void operator*=(const scalar);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2018-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -105,22 +105,6 @@ inline Foam::scalar Foam::WLFTransport<Thermo>::alphah
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class Thermo>
inline void Foam::WLFTransport<Thermo>::operator=
(
const WLFTransport<Thermo>& wlft
)
{
Thermo::operator=(wlft);
mu0_ = wlft.mu0_;
Tr_ = wlft.Tr_;
C1_ = wlft.C1_;
C2_ = wlft.C2_;
rPr_ = wlft.rPr_;
}
template<class Thermo> template<class Thermo>
inline void Foam::WLFTransport<Thermo>::operator+= inline void Foam::WLFTransport<Thermo>::operator+=
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -141,10 +141,7 @@ public:
// Member operators // Member operators
inline void operator=(const constTransport&);
inline void operator+=(const constTransport&); inline void operator+=(const constTransport&);
inline void operator*=(const scalar); inline void operator*=(const scalar);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -114,19 +114,6 @@ inline Foam::scalar Foam::constTransport<Thermo>::alphah
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class Thermo>
inline void Foam::constTransport<Thermo>::operator=
(
const constTransport<Thermo>& ct
)
{
Thermo::operator=(ct);
mu_ = ct.mu_;
rPr_ = ct.rPr_;
}
template<class Thermo> template<class Thermo>
inline void Foam::constTransport<Thermo>::operator+= inline void Foam::constTransport<Thermo>::operator+=
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2016-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2016-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -195,10 +195,7 @@ public:
// Member operators // Member operators
inline void operator=(const logPolynomialTransport&);
inline void operator+=(const logPolynomialTransport&); inline void operator+=(const logPolynomialTransport&);
inline void operator*=(const scalar); inline void operator*=(const scalar);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2016-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2016-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -112,19 +112,6 @@ inline Foam::scalar Foam::logPolynomialTransport<Thermo, PolySize>::alphah
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class Thermo, int PolySize>
inline void Foam::logPolynomialTransport<Thermo, PolySize>::operator=
(
const logPolynomialTransport<Thermo, PolySize>& pt
)
{
Thermo::operator=(pt);
muCoeffs_ = pt.muCoeffs_;
kappaCoeffs_ = pt.kappaCoeffs_;
}
template<class Thermo, int PolySize> template<class Thermo, int PolySize>
inline void Foam::logPolynomialTransport<Thermo, PolySize>::operator+= inline void Foam::logPolynomialTransport<Thermo, PolySize>::operator+=
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -177,10 +177,7 @@ public:
// Member operators // Member operators
inline void operator=(const polynomialTransport&);
inline void operator+=(const polynomialTransport&); inline void operator+=(const polynomialTransport&);
inline void operator*=(const scalar); inline void operator*=(const scalar);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -112,19 +112,6 @@ inline Foam::scalar Foam::polynomialTransport<Thermo, PolySize>::alphah
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class Thermo, int PolySize>
inline void Foam::polynomialTransport<Thermo, PolySize>::operator=
(
const polynomialTransport<Thermo, PolySize>& pt
)
{
Thermo::operator=(pt);
muCoeffs_ = pt.muCoeffs_;
kappaCoeffs_ = pt.kappaCoeffs_;
}
template<class Thermo, int PolySize> template<class Thermo, int PolySize>
inline void Foam::polynomialTransport<Thermo, PolySize>::operator+= inline void Foam::polynomialTransport<Thermo, PolySize>::operator+=
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -166,10 +166,7 @@ public:
// Member operators // Member operators
inline void operator=(const sutherlandTransport&);
inline void operator+=(const sutherlandTransport&); inline void operator+=(const sutherlandTransport&);
inline void operator*=(const scalar); inline void operator*=(const scalar);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -150,19 +150,6 @@ inline Foam::scalar Foam::sutherlandTransport<Thermo>::alphah
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class Thermo>
inline void Foam::sutherlandTransport<Thermo>::operator=
(
const sutherlandTransport<Thermo>& st
)
{
Thermo::operator=(st);
As_ = st.As_;
Ts_ = st.Ts_;
}
template<class Thermo> template<class Thermo>
inline void Foam::sutherlandTransport<Thermo>::operator+= inline void Foam::sutherlandTransport<Thermo>::operator+=
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -143,7 +143,8 @@ void Foam::triSurface::writeSTLASCII(const bool writeSorted, Ostream& os) const
void Foam::triSurface::writeSTLBINARY(std::ostream& os) const void Foam::triSurface::writeSTLBINARY(std::ostream& os) const
{ {
// Write the STL header // Write the STL header
string header("Foam binary STL", STLheaderSize); string header("Foam binary STL");
header.resize(STLheaderSize);
os.write(header.c_str(), STLheaderSize); os.write(header.c_str(), STLheaderSize);
label nTris = size(); label nTris = size();

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -83,14 +83,6 @@ Foam::surfacePatch::surfacePatch
{} {}
Foam::surfacePatch::surfacePatch(const Foam::surfacePatch& sp)
:
geometricSurfacePatch(sp),
size_(sp.size()),
start_(sp.start())
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::surfacePatch::write(Ostream& os) const void Foam::surfacePatch::write(Ostream& os) const

View File

@ -68,6 +68,7 @@ class surfacePatch
//- Start label of this patch in the triSurface face list //- Start label of this patch in the triSurface face list
label start_; label start_;
public: public:
//- Runtime type information //- Runtime type information
@ -100,9 +101,6 @@ public:
const label index const label index
); );
//- Copy constructor
surfacePatch(const surfacePatch&);
// Member Functions // Member Functions