Skip to content
Snippets Groups Projects
Commit 1a439b02 authored by henry's avatar henry
Browse files

Sorted warning message about the need for virtual destructor.

parent 28258d11
Branches
Tags
No related merge requests found
...@@ -69,16 +69,6 @@ Foam::Polynomial<PolySize>::Polynomial(const word& name, Istream& is) ...@@ -69,16 +69,6 @@ Foam::Polynomial<PolySize>::Polynomial(const word& name, Istream& is)
} }
template<int PolySize>
Foam::Polynomial<PolySize>::Polynomial(const Polynomial<PolySize>& poly)
:
VectorSpace<Polynomial<PolySize>, scalar, PolySize>(poly),
name_(poly.name_),
logActive_(poly.logActive_),
logCoeff_(poly.logCoeff_)
{}
template<int PolySize> template<int PolySize>
Foam::Polynomial<PolySize>::Polynomial Foam::Polynomial<PolySize>::Polynomial
( (
...@@ -93,13 +83,6 @@ Foam::Polynomial<PolySize>::Polynomial ...@@ -93,13 +83,6 @@ Foam::Polynomial<PolySize>::Polynomial
{} {}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template<int PolySize>
Foam::Polynomial<PolySize>::~Polynomial()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<int PolySize> template<int PolySize>
...@@ -210,16 +193,4 @@ Foam::Polynomial<PolySize>::integrateMinus1(const scalar intConstant) ...@@ -210,16 +193,4 @@ Foam::Polynomial<PolySize>::integrateMinus1(const scalar intConstant)
} }
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<int PolySize>
void Foam::Polynomial<PolySize>::operator=(const Polynomial<PolySize>& poly)
{
name_ = poly.name_;
VectorSpace<Polynomial<PolySize>, scalar, PolySize>::operator=(poly);
logActive_ = poly.logActive_;
logCoeff_ = poly.logCoeff_;
}
// ************************************************************************* // // ************************************************************************* //
...@@ -52,7 +52,6 @@ SourceFiles ...@@ -52,7 +52,6 @@ SourceFiles
#include "scalar.H" #include "scalar.H"
#include "Ostream.H" #include "Ostream.H"
#include "VectorSpace.H" #include "VectorSpace.H"
#include "Vector.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...@@ -81,8 +80,6 @@ class Polynomial ...@@ -81,8 +80,6 @@ class Polynomial
: :
public VectorSpace<Polynomial<PolySize>, scalar, PolySize> public VectorSpace<Polynomial<PolySize>, scalar, PolySize>
{ {
private:
// Private data // Private data
//- Polynomial name //- Polynomial name
...@@ -101,9 +98,6 @@ public: ...@@ -101,9 +98,6 @@ public:
typedef Polynomial<PolySize+1> intPolyType; typedef Polynomial<PolySize+1> intPolyType;
//- Run-time type information
TypeName("Polynomial")
// Constructors // Constructors
...@@ -113,17 +107,10 @@ public: ...@@ -113,17 +107,10 @@ public:
//- Construct from name and Istream //- Construct from name and Istream
Polynomial(const word& name, Istream& is); Polynomial(const word& name, Istream& is);
//- Copy constructor
Polynomial(const Polynomial& poly);
//- Copy constructor with name //- Copy constructor with name
Polynomial(const word& name, const Polynomial& poly); Polynomial(const word& name, const Polynomial& poly);
//- Destructor
~Polynomial();
// Member Functions // Member Functions
// Access // Access
...@@ -155,11 +142,6 @@ public: ...@@ -155,11 +142,6 @@ public:
scalar integrateLimits(const scalar x1, const scalar x2) const; scalar integrateLimits(const scalar x1, const scalar x2) const;
// Member operators
void operator=(const Polynomial& poly);
//- Ostream Operator //- Ostream Operator
friend Ostream& operator<< <PolySize> friend Ostream& operator<< <PolySize>
( (
......
...@@ -105,6 +105,7 @@ private: ...@@ -105,6 +105,7 @@ private:
// - schedule // - schedule
mutable autoPtr<mapDistribute> mapPtr_; mutable autoPtr<mapDistribute> mapPtr_;
// Private Member Functions // Private Member Functions
//- Collect single list of samples and originating processor+face. //- Collect single list of samples and originating processor+face.
...@@ -162,7 +163,7 @@ private: ...@@ -162,7 +163,7 @@ private:
public: public:
//- Runtime type information //- Runtime type information
ClassName("directMappedPatchBase"); TypeName("directMappedPatchBase");
// Constructors // Constructors
...@@ -177,15 +178,14 @@ public: ...@@ -177,15 +178,14 @@ public:
directMappedPatchBase(const polyPatch&, const directMappedPatchBase&); directMappedPatchBase(const polyPatch&, const directMappedPatchBase&);
// Destructor //- Destructor
virtual ~directMappedPatchBase();
~directMappedPatchBase();
void clearOut();
// Member functions // Member functions
void clearOut();
//- What to sample //- What to sample
const sampleMode& mode() const const sampleMode& mode() const
{ {
......
...@@ -151,9 +151,8 @@ public: ...@@ -151,9 +151,8 @@ public:
} }
// Destructor //- Destructor
virtual ~directMappedPolyPatch();
~directMappedPolyPatch();
// Member functions // Member functions
......
...@@ -158,9 +158,8 @@ public: ...@@ -158,9 +158,8 @@ public:
} }
// Destructor //- Destructor
virtual ~directMappedWallPolyPatch();
~directMappedWallPolyPatch();
// Member functions // Member functions
......
...@@ -105,8 +105,6 @@ class icoPolynomial ...@@ -105,8 +105,6 @@ class icoPolynomial
public: public:
TypeName("icoPolynomial")
// Constructors // Constructors
//- Construct from components //- Construct from components
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment