summaryrefslogtreecommitdiffstats
path: root/src/gui/App.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 /src/gui/App.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 'src/gui/App.hpp')
-rw-r--r--src/gui/App.hpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/App.hpp b/src/gui/App.hpp
index 2b27de25..e435c4a5 100644
--- a/src/gui/App.hpp
+++ b/src/gui/App.hpp
@@ -28,9 +28,9 @@
#include "ingen/Status.hpp"
#include "ingen/World.hpp"
+#include "ingen/types.hpp"
#include "raul/Atom.hpp"
#include "raul/Deletable.hpp"
-#include "raul/SharedPtr.hpp"
#include "raul/URI.hpp"
namespace Ingen {
@@ -74,7 +74,7 @@ public:
void error_message(const std::string& msg);
- void attach(SharedPtr<Client::SigClientInterface> client);
+ void attach(SPtr<Client::SigClientInterface> client);
void detach();
@@ -108,15 +108,15 @@ public:
Glib::RefPtr<Gdk::Pixbuf> icon_from_path(const std::string& path, int size);
- Ingen::Forge& forge() const { return _world->forge(); }
- SharedPtr<Ingen::Interface> interface() const { return _world->interface(); }
- SharedPtr<Client::SigClientInterface> client() const { return _client; }
- SharedPtr<Client::ClientStore> store() const { return _store; }
- SharedPtr<ThreadedLoader> loader() const { return _loader; }
+ Ingen::Forge& forge() const { return _world->forge(); }
+ SPtr<Ingen::Interface> interface() const { return _world->interface(); }
+ SPtr<Client::SigClientInterface> client() const { return _client; }
+ SPtr<Client::ClientStore> store() const { return _store; }
+ SPtr<ThreadedLoader> loader() const { return _loader; }
- SharedPtr<Serialisation::Serialiser> serialiser();
+ SPtr<Serialisation::Serialiser> serialiser();
- static SharedPtr<App> create(Ingen::World* world);
+ static SPtr<App> create(Ingen::World* world);
void run();
inline Ingen::World* world() const { return _world; }
@@ -152,9 +152,9 @@ protected:
static Gtk::Main* _main;
- SharedPtr<Client::SigClientInterface> _client;
- SharedPtr<Client::ClientStore> _store;
- SharedPtr<ThreadedLoader> _loader;
+ SPtr<Client::SigClientInterface> _client;
+ SPtr<Client::ClientStore> _store;
+ SPtr<ThreadedLoader> _loader;
Style* _style;