From f7368e7850307de97b024238a4f520afe1150c8b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 26 Jul 2007 09:32:49 +0000 Subject: Add const find interface to Raul::Table, fix bugs. Use Raul::Table on Ingen client side instead of std::map for objects, plugins. Work on renaming (still broken). git-svn-id: http://svn.drobilla.net/lad/ingen@634 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/PatchModel.hpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/libs/client/PatchModel.hpp') diff --git a/src/libs/client/PatchModel.hpp b/src/libs/client/PatchModel.hpp index 55040858..af1ef101 100644 --- a/src/libs/client/PatchModel.hpp +++ b/src/libs/client/PatchModel.hpp @@ -21,13 +21,12 @@ #include #include #include -#include #include #include "NodeModel.hpp" #include #include "ConnectionModel.hpp" -using std::list; using std::string; using std::map; +using std::list; using std::string; namespace Ingen { namespace Client { @@ -42,7 +41,6 @@ class Store; class PatchModel : public NodeModel { public: - const NodeModelMap& nodes() const { return _nodes; } const ConnectionList& connections() const { return _connections; } SharedPtr get_connection(const string& src_port_path, const string& dst_port_path) const; @@ -79,10 +77,10 @@ private: void disable(); void clear(); void set_path(const Path& path); - void add_node(SharedPtr nm); - void remove_node(SharedPtr nm); + //void add_node(SharedPtr nm); + //void remove_node(SharedPtr nm); void add_child(SharedPtr c); - void remove_child(SharedPtr c); + bool remove_child(SharedPtr c); void add_connection(SharedPtr cm); void remove_connection(const string& src_port_path, const string& dst_port_path); @@ -90,14 +88,13 @@ private: void rename_node(const Path& old_path, const Path& new_path); void rename_node_port(const Path& old_path, const Path& new_path); - NodeModelMap _nodes; ConnectionList _connections; string _filename; bool _enabled; size_t _poly; }; -typedef map > PatchModelMap; +typedef Table > PatchModelMap; } // namespace Client -- cgit v1.2.1