diff options
author | David Robillard <d@drobilla.net> | 2013-01-12 23:38:03 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-12 23:38:03 +0000 |
commit | df1447c665e6c3631961297a9d3e9aff4e94c47f (patch) | |
tree | c0ff117c362e6d571f430f886ab62f372b59af08 /src/gui/GraphPortModule.hpp | |
parent | bb335dca695273622b7a4ebbefbe9e089edb9ab4 (diff) | |
download | ingen-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 'src/gui/GraphPortModule.hpp')
-rw-r--r-- | src/gui/GraphPortModule.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/GraphPortModule.hpp b/src/gui/GraphPortModule.hpp index 722f35c3..9f2c96fd 100644 --- a/src/gui/GraphPortModule.hpp +++ b/src/gui/GraphPortModule.hpp @@ -49,9 +49,9 @@ class GraphPortModule : public Ganv::Module { public: static GraphPortModule* create( - GraphCanvas& canvas, - SharedPtr<const Client::PortModel> model, - bool human); + GraphCanvas& canvas, + SPtr<const Client::PortModel> model, + bool human); App& app() const; @@ -60,11 +60,11 @@ public: void set_name(const std::string& n); - SharedPtr<const Client::PortModel> port() const { return _model; } + SPtr<const Client::PortModel> port() const { return _model; } protected: - GraphPortModule(GraphCanvas& canvas, - SharedPtr<const Client::PortModel> model); + GraphPortModule(GraphCanvas& canvas, + SPtr<const Client::PortModel> model); bool show_menu(GdkEventButton* ev); void set_selected(gboolean b); @@ -73,8 +73,8 @@ protected: void property_changed(const Raul::URI& predicate, const Raul::Atom& value); - SharedPtr<const Client::PortModel> _model; - Port* _port; + SPtr<const Client::PortModel> _model; + Port* _port; }; } // namespace GUI |