diff options
author | David Robillard <d@drobilla.net> | 2008-08-15 23:34:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-15 23:34:41 +0000 |
commit | ab2aa4d4922ab1a62b7a43013d09b2d9d144b3c5 (patch) | |
tree | 9e235f0c3b7a355e3cc661720359cd3d9eb18fb9 /src/libs/engine/ObjectStore.hpp | |
parent | 4d5a589570a65d508170c59b4c738b441e216a93 (diff) | |
download | ingen-ab2aa4d4922ab1a62b7a43013d09b2d9d144b3c5.tar.gz ingen-ab2aa4d4922ab1a62b7a43013d09b2d9d144b3c5.tar.bz2 ingen-ab2aa4d4922ab1a62b7a43013d09b2d9d144b3c5.zip |
Push serialiser down into core ('world').
HTTP access to patches (serialised on demand).
git-svn-id: http://svn.drobilla.net/lad/ingen@1393 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/ObjectStore.hpp')
-rw-r--r-- | src/libs/engine/ObjectStore.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libs/engine/ObjectStore.hpp b/src/libs/engine/ObjectStore.hpp index bf85d3e1..edba52f0 100644 --- a/src/libs/engine/ObjectStore.hpp +++ b/src/libs/engine/ObjectStore.hpp @@ -21,6 +21,7 @@ #include <string> #include <raul/PathTable.hpp> #include <raul/SharedPtr.hpp> +#include "interface/Store.hpp" using std::string; using namespace Raul; @@ -44,7 +45,7 @@ class GraphObjectImpl; * Searching with find*() is fast (O(log(n)) binary search on contiguous * memory) and realtime safe, but modification (add or remove) are neither. */ -class ObjectStore +class ObjectStore : public Shared::Store { public: typedef Raul::PathTable< SharedPtr<Shared::GraphObject> > Objects; @@ -56,7 +57,10 @@ public: Objects::iterator find(const Path& path) { return _objects.find(path); } - void add(GraphObjectImpl* o); + Objects::const_iterator children_begin(SharedPtr<Shared::GraphObject> o) const; + Objects::const_iterator children_end(SharedPtr<Shared::GraphObject> o) const; + + void add(Shared::GraphObject* o); void add(const Table<Path, SharedPtr<Shared::GraphObject> >& family); //void add(TreeNode<GraphObjectImpl*>* o); |