diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2014-12-21 21:09:16 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2014-12-21 21:09:16 +0100 |
commit | 1a7c77c9175c4e9ed5c554b1986d4f2bf8b18197 (patch) | |
tree | 89fdfbe85da365624d5dd9d47e89a4bc860c0865 /src/core/common/Function.hpp | |
parent | d5b0d60818f649bed2b4e67f434e7d4480d9cb46 (diff) |
added Function as new variant type
Diffstat (limited to 'src/core/common/Function.hpp')
-rw-r--r-- | src/core/common/Function.hpp | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/core/common/Function.hpp b/src/core/common/Function.hpp index e0d87dd..8113c9d 100644 --- a/src/core/common/Function.hpp +++ b/src/core/common/Function.hpp @@ -30,9 +30,6 @@ #include <cassert> -#include <core/managed/Managed.hpp> - -#include "Rtti.hpp" #include "Variant.hpp" namespace ousia { @@ -43,11 +40,12 @@ namespace ousia { * which an array of Variant is supplied to the function and a Variant is * returned to the caller. */ -class Function : public Managed { -protected: - using Managed::Managed; - +class Function { public: + Function(const Function&) = delete; + Function(Function&&) = delete; + virtual ~Function() {}; + /** * Abstract function which is meant to call the underlying function (be it * a host or a script function) with the given arguments. @@ -87,8 +85,6 @@ private: const Callback method; public: - using Function::Function; - /** * Constructor of the Method class. * @@ -117,10 +113,6 @@ public: } }; -namespace RttiTypes { - extern const Rtti<Function> Function; -} - } #endif /* _OUSIA_FUNCTION_HPP_ */ |