summaryrefslogtreecommitdiffstats
path: root/src/libs/client/PatchModel.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-10-04 21:45:20 +0000
committerDavid Robillard <d@drobilla.net>2006-10-04 21:45:20 +0000
commit30cb85c307b4c1273791721a782337742ade222c (patch)
tree020932d6f50ebbcd813c58f6f23e85a293587665 /src/libs/client/PatchModel.h
parent32261ba465be203f973a0e126672b8d7188ba327 (diff)
downloadingen-30cb85c307b4c1273791721a782337742ade222c.tar.gz
ingen-30cb85c307b4c1273791721a782337742ade222c.tar.bz2
ingen-30cb85c307b4c1273791721a782337742ade222c.zip
Moved generic utility stuff to new library "raul".
git-svn-id: http://svn.drobilla.net/lad/ingen@156 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/PatchModel.h')
-rw-r--r--src/libs/client/PatchModel.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/libs/client/PatchModel.h b/src/libs/client/PatchModel.h
index a7679b15..7dbad00b 100644
--- a/src/libs/client/PatchModel.h
+++ b/src/libs/client/PatchModel.h
@@ -23,7 +23,7 @@
#include <map>
#include <sigc++/sigc++.h>
#include "NodeModel.h"
-#include "util/CountedPtr.h"
+#include "raul/SharedPtr.h"
#include "ConnectionModel.h"
using std::list; using std::string; using std::map;
@@ -44,8 +44,8 @@ public:
const NodeModelMap& nodes() const { return m_nodes; }
const ConnectionList& connections() const { return m_connections; }
- CountedPtr<ConnectionModel> get_connection(const string& src_port_path, const string& dst_port_path) const;
- CountedPtr<NodeModel> get_node(const string& node_name) const;
+ SharedPtr<ConnectionModel> get_connection(const string& src_port_path, const string& dst_port_path) const;
+ SharedPtr<NodeModel> get_node(const string& node_name) const;
size_t poly() const { return m_poly; }
const string& filename() const { return m_filename; }
@@ -53,9 +53,9 @@ public:
bool polyphonic() const;
// Signals
- sigc::signal<void, CountedPtr<NodeModel> > new_node_sig;
- sigc::signal<void, CountedPtr<NodeModel> > removed_node_sig;
- sigc::signal<void, CountedPtr<ConnectionModel> > new_connection_sig;
+ sigc::signal<void, SharedPtr<NodeModel> > new_node_sig;
+ sigc::signal<void, SharedPtr<NodeModel> > removed_node_sig;
+ sigc::signal<void, SharedPtr<ConnectionModel> > new_connection_sig;
sigc::signal<void, const Path&, const Path& > removed_connection_sig;
sigc::signal<void> enabled_sig;
sigc::signal<void> disabled_sig;
@@ -76,12 +76,12 @@ private:
void disable();
void clear();
void set_path(const Path& path);
- void add_node(CountedPtr<NodeModel> nm);
- void remove_node(CountedPtr<NodeModel> nm);
- void add_child(CountedPtr<ObjectModel> c);
- void remove_child(CountedPtr<ObjectModel> c);
+ void add_node(SharedPtr<NodeModel> nm);
+ void remove_node(SharedPtr<NodeModel> nm);
+ void add_child(SharedPtr<ObjectModel> c);
+ void remove_child(SharedPtr<ObjectModel> c);
- void add_connection(CountedPtr<ConnectionModel> cm);
+ void add_connection(SharedPtr<ConnectionModel> cm);
void remove_connection(const string& src_port_path, const string& dst_port_path);
void rename_node(const Path& old_path, const Path& new_path);
@@ -98,7 +98,7 @@ private:
size_t m_poly;
};
-typedef map<string, CountedPtr<PatchModel> > PatchModelMap;
+typedef map<string, SharedPtr<PatchModel> > PatchModelMap;
} // namespace Client