mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: polynomial - added clone()
This commit is contained in:
committed by
Mattijs Janssens
parent
dfe98fdf67
commit
9f5b8d0ebb
@ -103,6 +103,12 @@ public:
|
||||
//- Copy constructor
|
||||
explicit Polynomial(const Polynomial& poly);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual tmp<Function1<Type>> clone() const
|
||||
{
|
||||
return tmp<Function1<Type>>(new Polynomial<Type>(*this));
|
||||
}
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~Polynomial() = default;
|
||||
|
||||
Reference in New Issue
Block a user