summaryrefslogtreecommitdiffstats
path: root/ingen/client/ArcModel.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-01-12 23:38:03 +0000
committerDavid Robillard <d@drobilla.net>2013-01-12 23:38:03 +0000
commitdf1447c665e6c3631961297a9d3e9aff4e94c47f (patch)
treec0ff117c362e6d571f430f886ab62f372b59af08 /ingen/client/ArcModel.hpp
parentbb335dca695273622b7a4ebbefbe9e089edb9ab4 (diff)
downloadingen-df1447c665e6c3631961297a9d3e9aff4e94c47f.tar.gz
ingen-df1447c665e6c3631961297a9d3e9aff4e94c47f.tar.bz2
ingen-df1447c665e6c3631961297a9d3e9aff4e94c47f.zip
Remove Raul::SharedPtr and switch to std::shared_ptr.
Use project local short type aliases for shared_ptr and friends. Move Raul::Disposable and Raul::Manageable into Raul::Maid. Use sets to store machina nodes and edges to avoid O(n) searches. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4939 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ingen/client/ArcModel.hpp')
-rw-r--r--ingen/client/ArcModel.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/ingen/client/ArcModel.hpp b/ingen/client/ArcModel.hpp
index 99d5afa0..4306be09 100644
--- a/ingen/client/ArcModel.hpp
+++ b/ingen/client/ArcModel.hpp
@@ -19,8 +19,8 @@
#include <cassert>
+#include "ingen/types.hpp"
#include "raul/Path.hpp"
-#include "raul/SharedPtr.hpp"
#include "ingen/Arc.hpp"
#include "ingen/client/PortModel.hpp"
@@ -37,8 +37,8 @@ class ClientStore;
class ArcModel : public Arc
{
public:
- SharedPtr<PortModel> tail() const { return _tail; }
- SharedPtr<PortModel> head() const { return _head; }
+ SPtr<PortModel> tail() const { return _tail; }
+ SPtr<PortModel> head() const { return _head; }
const Raul::Path& tail_path() const { return _tail->path(); }
const Raul::Path& head_path() const { return _head->path(); }
@@ -46,7 +46,7 @@ public:
private:
friend class ClientStore;
- ArcModel(SharedPtr<PortModel> tail, SharedPtr<PortModel> head)
+ ArcModel(SPtr<PortModel> tail, SPtr<PortModel> head)
: _tail(tail)
, _head(head)
{
@@ -57,8 +57,8 @@ private:
assert(_tail->path() != _head->path());
}
- const SharedPtr<PortModel> _tail;
- const SharedPtr<PortModel> _head;
+ const SPtr<PortModel> _tail;
+ const SPtr<PortModel> _head;
};
} // namespace Client