COMP: backport of updates for gcc-92 compilation

STYLE: add typedefs for interpolation tables
This commit is contained in:
Mark Olesen
2020-01-28 12:46:27 +01:00
parent fce7948915
commit c278b93d7a
116 changed files with 511 additions and 733 deletions

View File

@ -143,6 +143,13 @@ public:
typedef indexedVertex<Gt,Vb2> Other; typedef indexedVertex<Gt,Vb2> Other;
}; };
// Generated Methods
//- Copy construct
indexedVertex(const indexedVertex&) = default;
// Constructors // Constructors
inline indexedVertex(); inline indexedVertex();

View File

@ -472,6 +472,12 @@ public:
public: public:
//- Copy construct
reference(const reference&) = default;
//- Move construct
reference(reference&&) = default;
//- Value assignment //- Value assignment
inline void operator=(const reference& other); inline void operator=(const reference& other);

View File

@ -447,6 +447,12 @@ public:
public: public:
//- Copy construct
reference(const reference&) = default;
//- Move construct
reference(reference&&) = default;
//- Flip the bit at the position, no range-checking //- Flip the bit at the position, no range-checking
inline void flip(); inline void flip();

View File

@ -766,8 +766,11 @@ public:
// Constructors // Constructors
//- Construct null (end iterator) //- Default construct (end iterator)
inline const_iterator() = default; const_iterator() = default;
//- Copy construct
const_iterator(const const_iterator&) = default;
//- Copy construct from similar access type //- Copy construct from similar access type
inline explicit const_iterator(const Iterator<true>& iter) inline explicit const_iterator(const Iterator<true>& iter)

View File

@ -233,6 +233,9 @@ public:
public: public:
//- Copy construct
iterator(const iterator&) = default;
//- Construct for a node on a list //- Construct for a node on a list
inline iterator(DLListBase* list, link* item); inline iterator(DLListBase* list, link* item);

View File

@ -209,6 +209,9 @@ public:
public: public:
//- Copy construct
iterator(const iterator&) = default;
//- Construct for a node on the list //- Construct for a node on the list
inline iterator(SLListBase* list, link* item); inline iterator(SLListBase* list, link* item);

View File

@ -76,6 +76,12 @@ public:
inline static const SubList<T>& null(); inline static const SubList<T>& null();
// Generated Methods
//- Copy construct
SubList(const SubList&) = default;
// Constructors // Constructors
//- Construct from UList and sub-list size, start at 0 //- Construct from UList and sub-list size, start at 0

View File

@ -213,6 +213,12 @@ public:
}; };
// Generated Methods
//- Copy construct
UList(const UList<T>&) = default;
// Constructors // Constructors
//- Null constructor //- Null constructor

View File

@ -259,6 +259,15 @@ public:
); );
// Generated Methods
//- Copy construct
IOobject(const IOobject&) = default;
//- Destructor
virtual ~IOobject() = default;
// Constructors // Constructors
//- Construct from name, instance, registry, io options //- Construct from name, instance, registry, io options
@ -328,10 +337,6 @@ public:
} }
//- Destructor
virtual ~IOobject() = default;
// Member Functions // Member Functions
// General access // General access

View File

@ -77,12 +77,6 @@ Foam::baseIOdictionary::baseIOdictionary
} }
// * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * * //
Foam::baseIOdictionary::~baseIOdictionary()
{}
// * * * * * * * * * * * * * * * Members Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Members Functions * * * * * * * * * * * * * //
const Foam::word& Foam::baseIOdictionary::name() const const Foam::word& Foam::baseIOdictionary::name() const

View File

@ -68,6 +68,18 @@ public:
TypeName("dictionary"); TypeName("dictionary");
// Generated Methods
//- Copy construct
baseIOdictionary(const baseIOdictionary&) = default;
//- Move construct
baseIOdictionary(baseIOdictionary&&) = default;
//- Destructor
virtual ~baseIOdictionary() = default;
// Constructors // Constructors
//- Construct given an IOobject //- Construct given an IOobject
@ -80,11 +92,7 @@ public:
baseIOdictionary(const IOobject&, Istream&); baseIOdictionary(const IOobject&, Istream&);
//- Destructor // Member Functions
virtual ~baseIOdictionary();
// Member functions
//- Return complete path + object name if the file exists //- Return complete path + object name if the file exists
// either in the case/processor or case otherwise null // either in the case/processor or case otherwise null

View File

@ -140,6 +140,15 @@ protected:
public: public:
// Generated Methods
//- Copy construct
IOstream(const IOstream&) = default;
//- Destructor
virtual ~IOstream() = default;
// Constructors // Constructors
//- Construct with specified stream option //- Construct with specified stream option
@ -165,10 +174,6 @@ public:
{} {}
//- Destructor
virtual ~IOstream() = default;
// Member Functions // Member Functions
// Access // Access

View File

@ -72,6 +72,15 @@ class Istream
public: public:
// Generated Methods
//- Copy construct
Istream(const Istream&) = default;
//- Destructor
virtual ~Istream() = default;
// Constructors // Constructors
//- Construct and set stream status //- Construct and set stream status
@ -87,11 +96,7 @@ public:
{} {}
//- Destructor // Member Functions
virtual ~Istream() = default;
// Member functions
// Read functions // Read functions

View File

@ -75,6 +75,15 @@ protected:
public: public:
// Generated Methods
//- Copy construct
Ostream(const Ostream&) = default;
//- Destructor
virtual ~Ostream() = default;
// Constructors // Constructors
//- Construct and set stream status //- Construct and set stream status
@ -90,11 +99,7 @@ public:
{} {}
//- Destructor // Member Functions
virtual ~Ostream() = default;
// Member functions
// Write functions // Write functions

View File

@ -62,14 +62,17 @@ class OSstream
std::ostream& os_; std::ostream& os_;
// Private Member Functions public:
// Generated Methods
//- Copy construct
OSstream(const OSstream&) = default;
//- No copy assignment //- No copy assignment
void operator=(const OSstream&) = delete; void operator=(const OSstream&) = delete;
public:
// Constructors // Constructors
//- Construct as wrapper around std::ostream and set stream status //- Construct as wrapper around std::ostream and set stream status

View File

@ -301,4 +301,32 @@ void Foam::ITstream::rewind()
} }
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
void Foam::ITstream::operator=(const ITstream& is)
{
Istream::operator=(is);
tokenList::operator=(is);
name_ = is.name_;
rewind();
}
void Foam::ITstream::operator=(const tokenList& toks)
{
tokenList::operator=(toks);
rewind();
}
void Foam::ITstream::operator=(tokenList&& toks)
{
tokenList::operator=(std::move(toks));
rewind();
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -273,10 +273,22 @@ public:
} }
// Print // Output
//- Print description of stream to Ostream //- Print stream description to Ostream
void print(Ostream& os) const; void print(Ostream& os) const;
// Member Operators
//- Copy assignment, with rewind()
void operator=(const ITstream& is);
//- Copy assignment of tokens, with rewind()
void operator=(const tokenList& toks);
//- Move assignment of tokens, with rewind()
void operator=(tokenList&& toks);
}; };

View File

@ -55,7 +55,7 @@ Foam::IOerror::IOerror(const dictionary& errDict)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::IOerror::~IOerror() throw() Foam::IOerror::~IOerror() noexcept
{} {}

View File

@ -128,7 +128,7 @@ Foam::error::error(const error& err)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::error::~error() throw() Foam::error::~error() noexcept
{ {
delete messageStreamPtr_; delete messageStreamPtr_;
} }

View File

@ -95,7 +95,7 @@ public:
//- Destructor //- Destructor
virtual ~error() throw(); virtual ~error() noexcept;
// Static Member Functions // Static Member Functions
@ -239,7 +239,7 @@ public:
//- Destructor //- Destructor
virtual ~IOerror() throw(); virtual ~IOerror() noexcept;
// Member functions // Member functions

View File

@ -65,6 +65,12 @@ public:
TypeName("value"); TypeName("value");
// Generated Methods
//- Copy construct
valuePointPatchField(const valuePointPatchField&) = default;
// Constructors // Constructors
//- Construct from patch and internal field //- Construct from patch and internal field

View File

@ -6,7 +6,7 @@
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2011-2017 OpenFOAM Foundation Copyright (C) 2011-2017 OpenFOAM Foundation
Copyright (C) 2016 OpenCFD Ltd. Copyright (C) 2016-2020 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -56,7 +56,7 @@ void Foam::interpolation2DTable<Type>::readTable()
template<class Type> template<class Type>
Foam::interpolation2DTable<Type>::interpolation2DTable() Foam::interpolation2DTable<Type>::interpolation2DTable()
: :
List<Tuple2<scalar, List<Tuple2<scalar, Type>>>>(), List<value_type>(),
bounding_(bounds::normalBounding::WARN), bounding_(bounds::normalBounding::WARN),
fileName_("fileNameIsUndefined"), fileName_("fileNameIsUndefined"),
reader_(nullptr) reader_(nullptr)
@ -71,7 +71,7 @@ Foam::interpolation2DTable<Type>::interpolation2DTable
const fileName& fName const fileName& fName
) )
: :
List<Tuple2<scalar, List<Tuple2<scalar, Type>>>>(values), List<value_type>(values),
bounding_(bounding), bounding_(bounding),
fileName_(fName), fileName_(fName),
reader_(nullptr) reader_(nullptr)
@ -81,7 +81,7 @@ Foam::interpolation2DTable<Type>::interpolation2DTable
template<class Type> template<class Type>
Foam::interpolation2DTable<Type>::interpolation2DTable(const fileName& fName) Foam::interpolation2DTable<Type>::interpolation2DTable(const fileName& fName)
: :
List<Tuple2<scalar, List<Tuple2<scalar, Type>>>>(), List<value_type>(),
bounding_(bounds::normalBounding::WARN), bounding_(bounds::normalBounding::WARN),
fileName_(fName), fileName_(fName),
reader_(new openFoamTableReader<Type>(dictionary())) reader_(new openFoamTableReader<Type>(dictionary()))
@ -93,7 +93,7 @@ Foam::interpolation2DTable<Type>::interpolation2DTable(const fileName& fName)
template<class Type> template<class Type>
Foam::interpolation2DTable<Type>::interpolation2DTable(const dictionary& dict) Foam::interpolation2DTable<Type>::interpolation2DTable(const dictionary& dict)
: :
List<Tuple2<scalar, List<Tuple2<scalar, Type>>>>(), List<value_type>(),
bounding_ bounding_
( (
bounds::normalBoundingNames.lookupOrDefault bounds::normalBoundingNames.lookupOrDefault
@ -114,13 +114,13 @@ Foam::interpolation2DTable<Type>::interpolation2DTable(const dictionary& dict)
template<class Type> template<class Type>
Foam::interpolation2DTable<Type>::interpolation2DTable Foam::interpolation2DTable<Type>::interpolation2DTable
( (
const interpolation2DTable& interpTable const interpolation2DTable& tbl
) )
: :
List<Tuple2<scalar, List<Tuple2<scalar, Type>>>>(interpTable), List<value_type>(tbl),
bounding_(interpTable.bounding_), bounding_(tbl.bounding_),
fileName_(interpTable.fileName_), fileName_(tbl.fileName_),
reader_(interpTable.reader_) // note: steals reader. Used in write(). reader_(tbl.reader_.clone())
{} {}
@ -312,6 +312,24 @@ Foam::label Foam::interpolation2DTable<Type>::Xi
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class Type>
void Foam::interpolation2DTable<Type>::operator=
(
const interpolation2DTable<Type>& rhs
)
{
if (this == &rhs)
{
return;
}
static_cast<List<value_type>&>(*this) = rhs;
bounding_ = rhs.bounding_;
fileName_ = rhs.fileName_;
reader_.reset(rhs.reader_.clone());
}
template<class Type> template<class Type>
Type Foam::interpolation2DTable<Type>::operator() Type Foam::interpolation2DTable<Type>::operator()
( (

View File

@ -6,6 +6,7 @@
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2016-2020 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -57,17 +58,7 @@ class interpolation2DTable
: :
public List<Tuple2<scalar, List<Tuple2<scalar, Type>>>> public List<Tuple2<scalar, List<Tuple2<scalar, Type>>>>
{ {
public: // Private Data
// Public data types
//- Convenience typedef
typedef List<Tuple2<scalar, List<Tuple2<scalar, Type>>>> table;
private:
// Private data
//- Handling for out-of-bound values //- Handling for out-of-bound values
bounds::normalBounding bounding_; bounds::normalBounding bounding_;
@ -103,6 +94,15 @@ private:
public: public:
// Public Data Types
//- The element data type
typedef Tuple2<scalar, List<Tuple2<scalar, Type>>> value_type;
//- Convenience typedef
typedef List<Tuple2<scalar, List<Tuple2<scalar, Type>>>> table;
// Constructors // Constructors
//- Construct null //- Construct null
@ -122,8 +122,8 @@ public:
//- Construct by reading file name and outOfBounds from dictionary //- Construct by reading file name and outOfBounds from dictionary
interpolation2DTable(const dictionary& dict); interpolation2DTable(const dictionary& dict);
//- Construct copy //- Copy construct
interpolation2DTable(const interpolation2DTable& interpTable); interpolation2DTable(const interpolation2DTable& tbl);
// Member Functions // Member Functions
@ -141,6 +141,9 @@ public:
//- Return an element of constant List<Tuple2<scalar, Type>> //- Return an element of constant List<Tuple2<scalar, Type>>
const List<Tuple2<scalar, Type>>& operator[](const label) const; const List<Tuple2<scalar, Type>>& operator[](const label) const;
//- Copy assignment
void operator=(const interpolation2DTable<Type>& rhs);
//- Return an interpolated value //- Return an interpolated value
Type operator()(const scalar valueX, const scalar valueY) const; Type operator()(const scalar valueX, const scalar valueY) const;
}; };

View File

@ -6,6 +6,7 @@
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2011-2017 OpenFOAM Foundation Copyright (C) 2011-2017 OpenFOAM Foundation
Copyright (C) 2020 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -59,7 +60,7 @@ void Foam::interpolationTable<Type>::readTable()
template<class Type> template<class Type>
Foam::interpolationTable<Type>::interpolationTable() Foam::interpolationTable<Type>::interpolationTable()
: :
List<Tuple2<scalar, Type>>(), List<value_type>(),
bounding_(bounds::repeatableBounding::WARN), bounding_(bounds::repeatableBounding::WARN),
fileName_("fileNameIsUndefined"), fileName_("fileNameIsUndefined"),
reader_(nullptr) reader_(nullptr)
@ -74,7 +75,7 @@ Foam::interpolationTable<Type>::interpolationTable
const fileName& fName const fileName& fName
) )
: :
List<Tuple2<scalar, Type>>(values), List<value_type>(values),
bounding_(bounding), bounding_(bounding),
fileName_(fName), fileName_(fName),
reader_(nullptr) reader_(nullptr)
@ -84,7 +85,7 @@ Foam::interpolationTable<Type>::interpolationTable
template<class Type> template<class Type>
Foam::interpolationTable<Type>::interpolationTable(const fileName& fName) Foam::interpolationTable<Type>::interpolationTable(const fileName& fName)
: :
List<Tuple2<scalar, Type>>(), List<value_type>(),
bounding_(bounds::repeatableBounding::WARN), bounding_(bounds::repeatableBounding::WARN),
fileName_(fName), fileName_(fName),
reader_(new openFoamTableReader<Type>(dictionary())) reader_(new openFoamTableReader<Type>(dictionary()))
@ -96,7 +97,7 @@ Foam::interpolationTable<Type>::interpolationTable(const fileName& fName)
template<class Type> template<class Type>
Foam::interpolationTable<Type>::interpolationTable(const dictionary& dict) Foam::interpolationTable<Type>::interpolationTable(const dictionary& dict)
: :
List<Tuple2<scalar, Type>>(), List<value_type>(),
bounding_ bounding_
( (
bounds::repeatableBoundingNames.lookupOrDefault bounds::repeatableBoundingNames.lookupOrDefault
@ -117,17 +118,16 @@ Foam::interpolationTable<Type>::interpolationTable(const dictionary& dict)
template<class Type> template<class Type>
Foam::interpolationTable<Type>::interpolationTable Foam::interpolationTable<Type>::interpolationTable
( (
const interpolationTable& interpTable const interpolationTable& tbl
) )
: :
List<Tuple2<scalar, Type>>(interpTable), List<value_type>(tbl),
bounding_(interpTable.bounding_), bounding_(tbl.bounding_),
fileName_(interpTable.fileName_), fileName_(tbl.fileName_),
reader_(interpTable.reader_) // note: steals reader. Used in write(). reader_(tbl.reader_.clone())
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type> template<class Type>
@ -318,6 +318,24 @@ Type Foam::interpolationTable<Type>::rateOfChange(const scalar value) const
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class Type>
void Foam::interpolationTable<Type>::operator=
(
const interpolationTable<Type>& rhs
)
{
if (this == &rhs)
{
return;
}
static_cast<List<value_type>&>(*this) = rhs;
bounding_ = rhs.bounding_;
fileName_ = rhs.fileName_;
reader_.reset(rhs.reader_.clone());
}
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

@ -104,6 +104,15 @@ class interpolationTable
public: public:
// Public Data Types
//- The element data type
typedef Tuple2<scalar, Type> value_type;
//- The mapped data type
typedef Type mapped_type;
// Constructors // Constructors
//- Construct null //- Construct null
@ -125,8 +134,8 @@ public:
// This is a specialised constructor used by patchFields // This is a specialised constructor used by patchFields
interpolationTable(const dictionary& dict); interpolationTable(const dictionary& dict);
//- Construct copy //- Copy construct
interpolationTable(const interpolationTable& interpTable); interpolationTable(const interpolationTable& tbl);
// Member Functions // Member Functions
@ -145,6 +154,9 @@ public:
// Member Operators // Member Operators
//- Copy assignment
void operator=(const interpolationTable<Type>& rhs);
//- 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

@ -73,6 +73,18 @@ class patchIdentifier
public: public:
// Generated Methods
//- Copy construct
patchIdentifier(const patchIdentifier&) = default;
//- Copy assignment
patchIdentifier& operator=(const patchIdentifier&) = default;
//- Destructor
virtual ~patchIdentifier() = default;
// Constructors // Constructors
//- Construct from components //- Construct from components
@ -100,10 +112,6 @@ public:
); );
//- Destructor
virtual ~patchIdentifier() = default;
// Member Functions // Member Functions
//- Return the patch name //- Return the patch name

View File

@ -83,6 +83,15 @@ public:
static const word emptyType; static const word emptyType;
// Generated Methods
//- Copy construct
surfZoneIdentifier(const surfZoneIdentifier&) = default;
//- Copy assignment
surfZoneIdentifier& operator=(const surfZoneIdentifier&) = default;
// Constructors // Constructors
//- Construct null //- Construct null

View File

@ -79,10 +79,19 @@ public:
enum components { XX, XY, XZ, YY, YZ, ZZ }; enum components { XX, XY, XZ, YY, YZ, ZZ };
// Constructors // Generated Methods
//- Construct null //- Default construct
inline SymmTensor(); SymmTensor() = default;
//- Copy construct
SymmTensor(const SymmTensor&) = default;
//- Copy assignment
SymmTensor& operator=(const SymmTensor&) = default;
// Constructors
//- Construct initialized to zero //- Construct initialized to zero
inline SymmTensor(const Foam::zero); inline SymmTensor(const Foam::zero);

View File

@ -30,11 +30,6 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Cmpt>
inline Foam::SymmTensor<Cmpt>::SymmTensor()
{}
template<class Cmpt> template<class Cmpt>
inline Foam::SymmTensor<Cmpt>::SymmTensor(const Foam::zero) inline Foam::SymmTensor<Cmpt>::SymmTensor(const Foam::zero)
: :

View File

@ -79,10 +79,19 @@ public:
enum components { XX, XY, YY }; enum components { XX, XY, YY };
// Constructors // Generated Methods
//- Construct null //- Default construct
inline SymmTensor2D(); SymmTensor2D() = default;
//- Copy construct
SymmTensor2D(const SymmTensor2D&) = default;
//- Copy assignment
SymmTensor2D& operator=(const SymmTensor2D&) = default;
// Constructors
//- Construct initialized to zero //- Construct initialized to zero
inline SymmTensor2D(const Foam::zero); inline SymmTensor2D(const Foam::zero);

View File

@ -30,11 +30,6 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Cmpt>
inline Foam::SymmTensor2D<Cmpt>::SymmTensor2D()
{}
template<class Cmpt> template<class Cmpt>
inline Foam::SymmTensor2D<Cmpt>::SymmTensor2D(const Foam::zero) inline Foam::SymmTensor2D<Cmpt>::SymmTensor2D(const Foam::zero)
: :

View File

@ -89,10 +89,19 @@ public:
enum components { XX, XY, XZ, YX, YY, YZ, ZX, ZY, ZZ }; enum components { XX, XY, XZ, YX, YY, YZ, ZX, ZY, ZZ };
// Constructors // Generated Methods
//- Construct null //- Default construct
inline Tensor(); Tensor() = default;
//- Copy construct
Tensor(const Tensor&) = default;
//- Copy assignment
Tensor& operator=(const Tensor&) = default;
// Constructors
//- Construct initialized to zero //- Construct initialized to zero
inline Tensor(const Foam::zero); inline Tensor(const Foam::zero);

View File

@ -30,11 +30,6 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Cmpt>
inline Foam::Tensor<Cmpt>::Tensor()
{}
template<class Cmpt> template<class Cmpt>
inline Foam::Tensor<Cmpt>::Tensor(const Foam::zero) inline Foam::Tensor<Cmpt>::Tensor(const Foam::zero)
: :

View File

@ -83,10 +83,19 @@ public:
enum components { XX, XY, YX, YY }; enum components { XX, XY, YX, YY };
// Constructors // Generated Methods
//- Construct null //- Default construct
inline Tensor2D(); Tensor2D() = default;
//- Copy construct
Tensor2D(const Tensor2D&) = default;
//- Copy assignment
Tensor2D& operator=(const Tensor2D&) = default;
// Constructors
//- Construct initialized to zero //- Construct initialized to zero
inline Tensor2D(const Foam::zero); inline Tensor2D(const Foam::zero);

View File

@ -28,11 +28,6 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Cmpt>
inline Foam::Tensor2D<Cmpt>::Tensor2D()
{}
template<class Cmpt> template<class Cmpt>
inline Foam::Tensor2D<Cmpt>::Tensor2D(const Foam::zero) inline Foam::Tensor2D<Cmpt>::Tensor2D(const Foam::zero)
: :

View File

@ -80,10 +80,19 @@ public:
enum components { X, Y, Z }; enum components { X, Y, Z };
// Constructors // Generated Methods
//- Construct null //- Default construct
inline Vector(); Vector() = default;
//- Copy construct
Vector(const Vector&) = default;
//- Copy assignment
Vector& operator=(const Vector&) = default;
// Constructors
//- Construct initialized to zero //- Construct initialized to zero
inline Vector(const Foam::zero); inline Vector(const Foam::zero);

View File

@ -28,11 +28,6 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Cmpt>
inline Foam::Vector<Cmpt>::Vector()
{}
template<class Cmpt> template<class Cmpt>
inline Foam::Vector<Cmpt>::Vector(const Foam::zero) inline Foam::Vector<Cmpt>::Vector(const Foam::zero)
: :

View File

@ -73,10 +73,19 @@ public:
enum components { X, Y }; enum components { X, Y };
// Constructors // Generated Methods
//- Construct null //- Default construct
inline Vector2D(); Vector2D() = default;
//- Copy construct
Vector2D(const Vector2D&) = default;
//- Copy assignment
Vector2D& operator=(const Vector2D&) = default;
// Constructors
//- Construct initialized to zero //- Construct initialized to zero
inline Vector2D(const Foam::zero); inline Vector2D(const Foam::zero);

View File

@ -28,11 +28,6 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Cmpt>
inline Foam::Vector2D<Cmpt>::Vector2D()
{}
template<class Cmpt> template<class Cmpt>
inline Foam::Vector2D<Cmpt>::Vector2D(const Foam::zero) inline Foam::Vector2D<Cmpt>::Vector2D(const Foam::zero)
: :

View File

@ -90,14 +90,26 @@ class complex
public: public:
// Generated Methods
//- Copy construct
complex(const complex&) = default;
//- Copy assignment
complex& operator=(const complex&) = default;
//- Move construct
complex(complex&&) = default;
//- Move assignment
complex& operator=(complex&&) = default;
// Constructors // Constructors
//- Construct null as zero-initialized //- Default construct, as zero-initialized
inline constexpr complex() noexcept; inline constexpr complex() noexcept;
//- Default copy constructor
complex(const complex&) = default;
//- Construct zero-initialized from zero class //- Construct zero-initialized from zero class
inline constexpr complex(const Foam::zero) noexcept; inline constexpr complex(const Foam::zero) noexcept;
@ -173,9 +185,6 @@ public:
} }
//- Copy assignment
inline void operator=(const complex& c);
//- Assign zero //- Assign zero
inline void operator=(const Foam::zero); inline void operator=(const Foam::zero);

View File

@ -116,13 +116,6 @@ inline Foam::complex Foam::complex::conjugate() const
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
inline void Foam::complex::operator=(const complex& c)
{
re = c.re;
im = c.im;
}
inline void Foam::complex::operator=(const Foam::zero) inline void Foam::complex::operator=(const Foam::zero)
{ {
re = 0; re = 0;

View File

@ -63,18 +63,21 @@ class Uniform
: :
public Constant<Type> public Constant<Type>
{ {
// Private Member Functions public:
//- Declare type-name, virtual type (with debug switch)
TypeName("uniform");
// Generated Methods
//- Copy construct
Uniform<Type>(const Uniform&) = default;
//- No copy assignment //- No copy assignment
void operator=(const Uniform<Type>&) = delete; void operator=(const Uniform<Type>&) = delete;
public:
// Runtime type information
TypeName("uniform");
// Constructors // Constructors
//- Construct from entry name and dictionary //- Construct from entry name and dictionary

View File

@ -43,18 +43,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

@ -108,9 +108,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

@ -88,6 +88,16 @@ public:
static const vectorTensorTransform I; static const vectorTensorTransform I;
// Generated Methods
//- Copy construct
vectorTensorTransform(const vectorTensorTransform&) = default;
//- Copy assignment
vectorTensorTransform&
operator=(const vectorTensorTransform&) = default;
// Constructors // Constructors
//- Construct null //- Construct null
@ -151,11 +161,11 @@ public:
tmp<Field<Type>> transform(const Field<Type>&) const; tmp<Field<Type>> transform(const Field<Type>&) const;
// Member operators // Member Operators
inline void operator=(const vectorTensorTransform&);
inline void operator&=(const vectorTensorTransform&); inline void operator&=(const vectorTensorTransform&);
//- Assign translation
inline void operator=(const vector&); inline void operator=(const vector&);
inline void operator+=(const vector&); inline void operator+=(const vector&);
inline void operator-=(const vector&); inline void operator-=(const vector&);

View File

@ -173,17 +173,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

@ -128,10 +128,19 @@ public:
static const quaternion I; static const quaternion I;
// Constructors // Generated Methods
//- Construct null //- Default construct
inline quaternion(); quaternion() = default;
//- Copy construct
quaternion(const quaternion&) = default;
//- Copy assignment
quaternion& operator=(const quaternion&) = default;
// Constructors
//- Construct zero initialized //- Construct zero initialized
inline quaternion(const Foam::zero); inline quaternion(const Foam::zero);
@ -223,7 +232,6 @@ public:
// Member Operators // Member Operators
inline void operator=(const quaternion& q);
inline void operator+=(const quaternion& q); inline void operator+=(const quaternion& q);
inline void operator-=(const quaternion& q); inline void operator-=(const quaternion& q);
inline void operator*=(const quaternion& q); inline void operator*=(const quaternion& q);

View File

@ -28,10 +28,6 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
inline Foam::quaternion::quaternion()
{}
inline Foam::quaternion::quaternion(const Foam::zero) inline Foam::quaternion::quaternion(const Foam::zero)
: :
w_(Zero), w_(Zero),
@ -585,12 +581,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

@ -40,13 +40,9 @@ Foam::Random::Random(const label seedValue)
{} {}
Foam::Random::Random(const Random& r, const bool reset) Foam::Random::Random(const Random& rnd, const bool reset)
: :
seed_(r.seed_), Random(rnd)
generator_(r.generator_),
uniform01_(),
hasGaussSample_(r.hasGaussSample_),
gaussSample_(r.gaussSample_)
{ {
if (reset) if (reset)
{ {

View File

@ -90,12 +90,8 @@ public:
//- Construct with seed value //- Construct with seed value
Random(const label seedValue = 123456); Random(const label seedValue = 123456);
//- Copy construct with optional reset of seed //- Copy construct with possible reset of seed
Random(const Random& r, const bool reset = false); Random(const Random& rnd, const bool reset);
//- Destructor
~Random() = default;
// Member Functions // Member Functions

View File

@ -86,10 +86,22 @@ public:
static const septernion I; static const septernion I;
// Generated Methods
//- Default construct
septernion() = default;
//- Copy construct
septernion(const septernion&) = default;
//- Copy assignment
septernion& operator=(const septernion&) = default;
// Constructors // Constructors
//- Construct null //- Construct zero initialized
inline septernion(); inline septernion(const Foam::zero);
//- Construct given a translation vector and rotation quaternion //- Construct given a translation vector and rotation quaternion
inline septernion(const vector& t, const quaternion& r); inline septernion(const vector& t, const quaternion& r);
@ -130,9 +142,8 @@ public:
inline vector invTransformPoint(const vector& v) const; inline vector invTransformPoint(const vector& v) const;
// 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

@ -27,7 +27,10 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
inline Foam::septernion::septernion() inline Foam::septernion::septernion(const Foam::zero)
:
t_(Zero),
r_(Zero)
{} {}
inline Foam::septernion::septernion(const vector& t, const quaternion& r) inline Foam::septernion::septernion(const vector& t, const quaternion& r)
@ -95,12 +98,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

@ -59,34 +59,14 @@ 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()), boundaryPatch(p)
size_(p.size()),
start_(p.start())
{}
Foam::autoPtr<Foam::boundaryPatch> Foam::boundaryPatch::clone() const
{ {
return autoPtr<boundaryPatch>::New(*this); patchIdentifier::index() = index;
} }
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::boundaryPatch::~boundaryPatch()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::boundaryPatch::write(Ostream& os) const void Foam::boundaryPatch::write(Ostream& os) const

View File

@ -88,18 +88,15 @@ public:
const label index const label index
); );
//- Construct as copy //- Copy construct, resetting the index
boundaryPatch(const boundaryPatch&); boundaryPatch(const boundaryPatch& p, const label index);
//- Construct as copy, resetting the index
boundaryPatch(const boundaryPatch&, const label index);
//- Clone //- Clone
autoPtr<boundaryPatch> clone() const; autoPtr<boundaryPatch> clone() const
{
return autoPtr<boundaryPatch>::New(*this);
//- Destructor }
~boundaryPatch();
// Member Functions // Member Functions

View File

@ -141,9 +141,6 @@ public:
const vector& n const vector& n
); );
//- Construct as copy
inline directionInfo(const directionInfo&);
// Member Functions // Member Functions

View File

@ -51,14 +51,6 @@ inline Foam::directionInfo::directionInfo
{} {}
// Construct as copy
inline Foam::directionInfo::directionInfo(const directionInfo& w2)
:
index_(w2.index()),
n_(w2.n())
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class TrackingData> template<class TrackingData>

View File

@ -89,8 +89,7 @@ public:
//- Construct from normal //- Construct from normal
inline wallNormalInfo(const vector& normal); inline wallNormalInfo(const vector& normal);
//- Construct as copy
inline wallNormalInfo(const wallNormalInfo&);
// Member Functions // Member Functions

View File

@ -74,13 +74,6 @@ inline Foam::wallNormalInfo::wallNormalInfo(const vector& normal)
{} {}
// Construct as copy
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

View File

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

View File

@ -135,16 +135,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

@ -112,6 +112,12 @@ public:
}; };
// Generated Methods
//- Copy construct
ignitionSite(const ignitionSite&) = default;
// Constructors // Constructors
//- Construct from Istream and database //- Construct from Istream and database

View File

@ -83,6 +83,15 @@ private:
public: public:
// Generated Methods
//- Copy construct
smoothData(const smoothData&) = default;
//- Copy assignment
smoothData& operator=(const smoothData&) = default;
// Constructors // Constructors
//- Construct null //- Construct null

View File

@ -68,6 +68,15 @@ class sweepData
public: public:
// Generated Methods
//- Copy construct
sweepData(const sweepData&) = default;
//- Copy assignment
sweepData& operator=(const sweepData&) = default;
// Constructors // Constructors
//- Construct null //- Construct null

View File

@ -29,9 +29,9 @@ inline Foam::HashSet<Foam::wordRe>
Foam::functionObjects::fieldSelection::filters() const Foam::functionObjects::fieldSelection::filters() const
{ {
HashSet<wordRe> f; HashSet<wordRe> f;
for (const auto fieldInfo : *this) for (const fieldInfo& fi : *this)
{ {
f.insert(fieldInfo.name()); f.insert(fi.name());
} }
return f; return f;

View File

@ -29,14 +29,6 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::referredWallFace::referredWallFace()
:
face(),
pts_(),
patchi_()
{}
Foam::referredWallFace::referredWallFace Foam::referredWallFace::referredWallFace
( (
const face& f, const face& f,
@ -57,27 +49,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 * * * * * * * * * * * * * * * //
Foam::referredWallFace::~referredWallFace()
{}
// * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * * //
bool Foam::referredWallFace::operator==(const referredWallFace& rhs) const bool Foam::referredWallFace::operator==(const referredWallFace& rhs) const

View File

@ -76,10 +76,13 @@ class referredWallFace
public: public:
// Constructors // Generated Methods
//- Construct null //- Default construct
referredWallFace(); referredWallFace() = default;
// Constructors
//- Construct from components //- Construct from components
referredWallFace referredWallFace
@ -89,13 +92,6 @@ public:
label patchi label patchi
); );
//- Construct as copy
referredWallFace(const referredWallFace&);
//- Destructor
~referredWallFace();
// Member Functions // Member Functions

View File

@ -30,14 +30,6 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class PairType, class WallType>
Foam::CollisionRecordList<PairType, WallType>::CollisionRecordList()
:
pairRecords_(),
wallRecords_()
{}
template<class PairType, class WallType> template<class PairType, class WallType>
Foam::CollisionRecordList<PairType, WallType>::CollisionRecordList(Istream& is) Foam::CollisionRecordList<PairType, WallType>::CollisionRecordList(Istream& is)
: :
@ -122,13 +114,6 @@ Foam::CollisionRecordList<PairType, WallType>::CollisionRecordList
} }
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * /
template<class PairType, class WallType>
Foam::CollisionRecordList<PairType, WallType>::~CollisionRecordList()
{}
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
template<class PairType, class WallType> template<class PairType, class WallType>
@ -385,27 +370,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

@ -90,10 +90,13 @@ class CollisionRecordList
public: public:
// Constructors // Generated Methods
//- Construct null //- Default construct
CollisionRecordList(); CollisionRecordList() = default;
// Constructors
//- Construct from Istream //- Construct from Istream
CollisionRecordList(Istream&); CollisionRecordList(Istream&);
@ -110,9 +113,6 @@ public:
const Field<WallType>& wallData const Field<WallType>& wallData
); );
//- Destructor
~CollisionRecordList();
// Member Functions // Member Functions
@ -196,11 +196,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

@ -188,16 +188,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_)
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::phaseProperties::reorder void Foam::phaseProperties::reorder

View File

@ -124,13 +124,6 @@ public:
//- Construct from Istream //- Construct from Istream
phaseProperties(Istream& is); phaseProperties(Istream& is);
//- Construct as copy
phaseProperties(const phaseProperties& pp);
//- Destructor
~phaseProperties() = default;
// Public Member Functions // Public Member Functions

View File

@ -32,11 +32,7 @@ License
Foam::phaseProperties::phaseProperties(Istream& is) Foam::phaseProperties::phaseProperties(Istream& is)
: :
phase_(UNKNOWN), phaseProperties()
stateLabel_("(unknown)"),
names_(),
Y_(),
carrierIds_()
{ {
is >> *this; is >> *this;
} }

View File

@ -65,13 +65,12 @@ class forceSuSp
: :
public Tuple2<vector, scalar> public Tuple2<vector, scalar>
{ {
public: public:
// Constructors // Constructors
//- Construct null //- Default construct
inline forceSuSp(); forceSuSp() = default;
//- Construct zero-initialized content //- Construct zero-initialized content
inline forceSuSp(const zero); inline forceSuSp(const zero);
@ -108,9 +107,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

@ -27,10 +27,6 @@ License
// * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * * //
inline Foam::forceSuSp::forceSuSp()
{}
inline Foam::forceSuSp::forceSuSp(const zero) inline Foam::forceSuSp::forceSuSp(const zero)
: :
Tuple2<vector, scalar>(vector::zero, 0.0) Tuple2<vector, scalar>(vector::zero, 0.0)
@ -87,13 +83,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

@ -71,29 +71,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 * * * * * * * * * * * * * * * //
template<class CloudType>
Foam::SingleKineticRateDevolatilisation<CloudType>::
~SingleKineticRateDevolatilisation()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class CloudType> template<class CloudType>

View File

@ -111,18 +111,6 @@ class SingleKineticRateDevolatilisation
E_(readScalar(is)) E_(readScalar(is))
{} {}
//- Construct as copy
volatileData(const volatileData& vd)
:
name_(vd.name_),
A1_(vd.A1_),
E_(vd.E_)
{}
//- Destructor
~volatileData()
{}
// Public Member Functions // Public Member Functions
@ -208,12 +196,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
{ {
@ -225,7 +207,7 @@ public:
//- Destructor //- Destructor
virtual ~SingleKineticRateDevolatilisation(); virtual ~SingleKineticRateDevolatilisation() = default;
// Member Functions // Member Functions

View File

@ -126,12 +126,17 @@ class blockDescriptor
void findCurvedFaces(); void findCurvedFaces();
public:
// Generated Methods
//- Copy construct
blockDescriptor(const blockDescriptor&) = default;
//- No copy assignment //- No copy assignment
void operator=(const blockDescriptor&) = delete; void operator=(const blockDescriptor&) = delete;
public:
// Constructors // Constructors
//- Construct from components. Optional cellSet/zone name. //- Construct from components. Optional cellSet/zone name.

View File

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

View File

@ -139,14 +139,6 @@ inline Foam::patchEdgeFaceInfo::patchEdgeFaceInfo
{} {}
// Construct as copy
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

@ -90,9 +90,6 @@ public:
const DataType& data const DataType& data
); );
//- Construct as copy
inline PointData(const PointData&);
// Member Functions // Member Functions

View File

@ -51,14 +51,6 @@ inline Foam::PointData<DataType>::PointData
{} {}
template<class DataType>
inline Foam::PointData<DataType>::PointData(const PointData<DataType>& wpt)
:
pointEdgePoint(wpt),
data_(wpt.data())
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class DataType> template<class DataType>

View File

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

View File

@ -139,14 +139,6 @@ inline Foam::pointEdgePoint::pointEdgePoint
{} {}
// Construct as copy
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

@ -92,11 +92,8 @@ public:
//- Construct null //- Construct null
inline cellInfo(); inline cellInfo();
//- Construct from cType //- Construct from cellClassification type
inline cellInfo(const label); inline explicit cellInfo(const label ctype);
//- Construct as copy
inline cellInfo(const cellInfo&);
// Member Functions // Member Functions

View File

@ -101,17 +101,9 @@ inline Foam::cellInfo::cellInfo()
{} {}
// Construct from components inline Foam::cellInfo::cellInfo(const label ctype)
inline Foam::cellInfo::cellInfo(const label type)
: :
type_(type) type_(ctype)
{}
// Construct as copy
inline Foam::cellInfo::cellInfo(const cellInfo& w2)
:
type_(w2.type())
{} {}

View File

@ -99,9 +99,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);
//- Construct as copy
inline wallPoint(const wallPoint&);
// Member Functions // Member Functions

View File

@ -98,13 +98,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

@ -61,24 +61,4 @@ 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 * * * * * * * * * * * * * * * //
Foam::sixDoFRigidBodyMotionState::~sixDoFRigidBodyMotionState()
{}
// ************************************************************************* // // ************************************************************************* //

View File

@ -102,13 +102,6 @@ public:
//- Construct from dictionary //- Construct from dictionary
sixDoFRigidBodyMotionState(const dictionary& dict); sixDoFRigidBodyMotionState(const dictionary& dict);
//- Construct as copy
sixDoFRigidBodyMotionState(const sixDoFRigidBodyMotionState&);
//- Destructor
~sixDoFRigidBodyMotionState();
// Member Functions // Member Functions

View File

@ -88,14 +88,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

@ -82,6 +82,15 @@ public:
ClassName("surfZone"); ClassName("surfZone");
// Generated Methods
//- Copy construct
surfZone(const surfZone&) = default;
//- Copy assignment
surfZone& operator=(const surfZone&) = default;
// Constructors // Constructors
//- Construct null //- Construct null
@ -108,9 +117,6 @@ public:
const label index const label index
); );
//- Construct as copy
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

@ -93,6 +93,16 @@ public:
ClassName("geometricSurfacePatch"); ClassName("geometricSurfacePatch");
// Generated Methods
//- Copy construct
geometricSurfacePatch(const geometricSurfacePatch&) = default;
//- Copy assignment
geometricSurfacePatch&
operator=(const geometricSurfacePatch&) = default;
// Constructors // Constructors
//- Construct null //- Construct null

View File

@ -133,9 +133,8 @@ public:
void write(Ostream& os) const; void write(Ostream& os) const;
// Member operators // Member Operators
inline void operator=(const constAnIsoSolidTransport&);
inline void operator+=(const constAnIsoSolidTransport&); inline void operator+=(const constAnIsoSolidTransport&);

View File

@ -96,16 +96,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

@ -134,13 +134,12 @@ public:
void write(Ostream& os) const; void write(Ostream& os) const;
// Member operators // Member Operators
inline void operator=(const constIsoSolidTransport&);
inline void operator+=(const constIsoSolidTransport&); inline void operator+=(const constIsoSolidTransport&);
// Friend operators // Friend Operators
friend constIsoSolidTransport operator* <Thermo> friend constIsoSolidTransport operator* <Thermo>
( (

View File

@ -96,17 +96,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

@ -142,13 +142,12 @@ public:
void write(Ostream& os) const; void write(Ostream& os) const;
// Member operators // Member Operators
inline void operator=(const exponentialSolidTransport&);
inline void operator+=(const exponentialSolidTransport&); inline void operator+=(const exponentialSolidTransport&);
// Friend operators // Friend Operators
friend exponentialSolidTransport operator* <Thermo> friend exponentialSolidTransport operator* <Thermo>
( (

View File

@ -108,19 +108,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

@ -183,14 +183,13 @@ public:
void write(Ostream& os) const; void write(Ostream& os) const;
// 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);
// Friend operators // Friend Operators
friend polynomialSolidTransport operator+ <Thermo, PolySize> friend polynomialSolidTransport operator+ <Thermo, PolySize>
( (

View File

@ -120,18 +120,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

@ -209,14 +209,13 @@ public:
void write(Ostream& os) const; void write(Ostream& os) const;
// 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);
// Friend operators // Friend Operators
friend icoPolynomial operator+ <Specie, PolySize> friend icoPolynomial operator+ <Specie, PolySize>
( (

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