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/Node.hpp | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) (limited to 'src/core/Node.hpp') 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; -}; } -- cgit v1.2.3