From c6aa669aac80466ea287e9a27348c1068cc1f17e Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 16 Dec 2014 02:34:36 +0100 Subject: changed paths to new location of the Managed class, adapted NodeVector and NodeMap to the slightly changed conditions in the Node class --- src/core/CSS.hpp | 2 +- src/core/Node.hpp | 41 +++++++++++++++++++---------------------- src/core/model/Domain.hpp | 2 +- src/core/model/Typesystem.hpp | 3 +-- 4 files changed, 22 insertions(+), 26 deletions(-) (limited to 'src') diff --git a/src/core/CSS.hpp b/src/core/CSS.hpp index a54d956..06ddfc8 100644 --- a/src/core/CSS.hpp +++ b/src/core/CSS.hpp @@ -24,8 +24,8 @@ #include #include +#include -#include "Managed.hpp" #include "Node.hpp" namespace ousia { diff --git a/src/core/Node.hpp b/src/core/Node.hpp index b7d050d..4bc95be 100644 --- a/src/core/Node.hpp +++ b/src/core/Node.hpp @@ -25,8 +25,8 @@ #include #include -#include "Managed.hpp" -#include "ManagedContainers.hpp" +#include +#include namespace ousia { @@ -512,33 +512,30 @@ public: bool triggerEvent(Event &event, bool fromChild = false); }; -template -class NodeGenericList : public ManagedGenericList { -protected: - // TODO: Override addElement, deleteElement once this is necessary -public: - using ManagedGenericList::ManagedGenericList; -}; +// TODO: Use a different listener here for updating name maps -template -class NodeGenericMap : public ManagedGenericMap { -protected: - // TODO: Override addElement, deleteElement once this is necessary +template >> +class NodeVector + : public ManagedGenericList>, + ListAccessor>, Listener> { public: - using ManagedGenericMap>>::ManagedGenericMap; + using Base = ManagedGenericList>, + ListAccessor>, Listener>; + using Base::ManagedGenericList; }; -template -class NodeVector : public NodeGenericList>> { +template >>> +class NodeMap + : public ManagedGenericMap>, + MapAccessor>>, Listener> { public: - using NodeGenericList>>::NodeGenericList; + using Base = + ManagedGenericMap>, + MapAccessor>>, Listener>; + using Base::ManagedGenericMap; }; -template -class NodeMap : public NodeGenericMap>> { -public: - using NodeGenericMap>>::NodeGenericMap; -}; } diff --git a/src/core/model/Domain.hpp b/src/core/model/Domain.hpp index 565313f..40b48c6 100644 --- a/src/core/model/Domain.hpp +++ b/src/core/model/Domain.hpp @@ -27,7 +27,7 @@ #ifndef _OUSIA_MODEL_DOMAIN_HPP_ #define _OUSIA_MODEL_DOMAIN_HPP_ -#include +#include #include namespace ousia { diff --git a/src/core/model/Typesystem.hpp b/src/core/model/Typesystem.hpp index 77a862b..347adb8 100644 --- a/src/core/model/Typesystem.hpp +++ b/src/core/model/Typesystem.hpp @@ -30,7 +30,6 @@ #include #include -#include #include #include #include @@ -361,7 +360,7 @@ public: class Typesystem : public Node { private: - ManagedVector types; + NodeVector types; public: Typesystem(Manager &mgr, std::string name, Handle parent = nullptr) -- cgit v1.2.3