summaryrefslogtreecommitdiffstats
path: root/ingen/LV2Features.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/LV2Features.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/LV2Features.hpp')
-rw-r--r--ingen/LV2Features.hpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/ingen/LV2Features.hpp b/ingen/LV2Features.hpp
index 214d62bb..be8f777b 100644
--- a/ingen/LV2Features.hpp
+++ b/ingen/LV2Features.hpp
@@ -20,10 +20,10 @@
#include <vector>
#include "lv2/lv2plug.in/ns/lv2core/lv2.h"
-
-#include "raul/SharedPtr.hpp"
#include "raul/Noncopyable.hpp"
+#include "ingen/types.hpp"
+
namespace Ingen {
class Node;
@@ -42,13 +42,13 @@ public:
virtual const char* uri() const = 0;
- virtual SharedPtr<LV2_Feature> feature(World* world,
- Node* block) = 0;
+ virtual SPtr<LV2_Feature> feature(World* world,
+ Node* block) = 0;
};
class FeatureArray : public Raul::Noncopyable {
public:
- typedef std::vector< SharedPtr<LV2_Feature> > FeatureVector;
+ typedef std::vector< SPtr<LV2_Feature> > FeatureVector;
explicit FeatureArray(FeatureVector& features);
@@ -61,14 +61,14 @@ public:
LV2_Feature** _array;
};
- void add_feature(SharedPtr<Feature> feature);
+ void add_feature(SPtr<Feature> feature);
bool is_supported(const std::string& uri) const;
- SharedPtr<FeatureArray> lv2_features(World* world,
- Node* block) const;
+ SPtr<FeatureArray> lv2_features(World* world,
+ Node* block) const;
private:
- typedef std::vector< SharedPtr<Feature> > Features;
+ typedef std::vector< SPtr<Feature> > Features;
Features _features;
};