From 54d66cfa220128ae6c7cd05aa5db3354e459105b Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 21 Dec 2014 14:03:44 +0100 Subject: Function now derives from Managed --- src/core/common/Function.hpp | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) (limited to 'src/core/common/Function.hpp') diff --git a/src/core/common/Function.hpp b/src/core/common/Function.hpp index 3a0ed9f..0274603 100644 --- a/src/core/common/Function.hpp +++ b/src/core/common/Function.hpp @@ -31,6 +31,8 @@ #include #include +#include + #include "Variant.hpp" namespace ousia { @@ -41,33 +43,8 @@ namespace ousia { * using the call function in which an array of Variant is supplied to the * function and a Variant is returned to the caller. */ -class AbstractFunction { -private: - /** - * Private, non-callable constructor. - */ - AbstractFunction(){}; - - /* No copy constructor */ - AbstractFunction(const AbstractFunction &) = delete; - - /* No move constructor */ - AbstractFunction(AbstractFunction &&) = delete; - +class AbstractFunction : public Managed { public: - /** - * Pure virtual method used to create a copy of the AbstractFunction - * object. - * - * @return a unique pointer pointing at a copy of the AbstractFunction - * object. - */ - virtual std::unique_ptr clone() const = 0; - - /** - * Virtual destructor. - */ - virtual ~AbstractFunction() {} /** * Abstract function which is meant to call the underlying function (be it -- cgit v1.2.3