From fffca72cfd8fdf1350dbe4bf8a5408f6088bf5b4 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Fri, 2 Jan 2015 23:36:02 +0100 Subject: Using Index per default in NodeVector and NodeMap, added Unit test --- src/core/model/Node.hpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/core/model/Node.hpp') diff --git a/src/core/model/Node.hpp b/src/core/model/Node.hpp index cca33f7..a637b56 100644 --- a/src/core/model/Node.hpp +++ b/src/core/model/Node.hpp @@ -29,6 +29,8 @@ #include #include +#include "Index.hpp" + namespace ousia { /** @@ -292,7 +294,7 @@ public: // TODO: Use a different listener here for updating name maps -template >> +template class NodeVector : public ManagedGenericList>, ListAccessor>, Listener> { @@ -300,10 +302,11 @@ public: using Base = ManagedGenericList>, ListAccessor>, Listener>; using Base::ManagedGenericList; + + Index& getIndex() { return this->listener;} }; -template >>> +template class NodeMap : public ManagedGenericMap>, MapAccessor>>, Listener> { @@ -312,6 +315,8 @@ public: ManagedGenericMap>, MapAccessor>>, Listener>; using Base::ManagedGenericMap; + + Index& getIndex() { return this->listener;} }; namespace RttiTypes { -- cgit v1.2.3