coordinateSystems: Added missing clone functions
This commit is contained in:
@ -106,6 +106,12 @@ public:
|
||||
//- Construct from dictionary
|
||||
cartesianCS(const word&, const dictionary&);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual autoPtr<coordinateSystem> clone() const
|
||||
{
|
||||
return autoPtr<coordinateSystem>(new cartesianCS(*this));
|
||||
}
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~cartesianCS();
|
||||
|
||||
@ -160,12 +160,11 @@ public:
|
||||
//- Construct from dictionary with a given name
|
||||
coordinateSystem(const word& name, const dictionary&);
|
||||
|
||||
|
||||
//- Return clone
|
||||
autoPtr<coordinateSystem> clone() const
|
||||
{
|
||||
return autoPtr<coordinateSystem>(new coordinateSystem(*this));
|
||||
}
|
||||
//- Construct and return a clone
|
||||
virtual autoPtr<coordinateSystem> clone() const
|
||||
{
|
||||
return autoPtr<coordinateSystem>(new coordinateSystem(*this));
|
||||
}
|
||||
|
||||
|
||||
// Declare run-time constructor selection table
|
||||
|
||||
@ -114,6 +114,12 @@ public:
|
||||
//- Construct from dictionary and name
|
||||
cylindricalCS(const word&, const dictionary&);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual autoPtr<coordinateSystem> clone() const
|
||||
{
|
||||
return autoPtr<coordinateSystem>(new cylindricalCS(*this));
|
||||
}
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~cylindricalCS();
|
||||
|
||||
Reference in New Issue
Block a user