From df1447c665e6c3631961297a9d3e9aff4e94c47f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 Jan 2013 23:38:03 +0000 Subject: 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 --- ingen/LV2Features.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'ingen/LV2Features.hpp') 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 #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 feature(World* world, - Node* block) = 0; + virtual SPtr feature(World* world, + Node* block) = 0; }; class FeatureArray : public Raul::Noncopyable { public: - typedef std::vector< SharedPtr > FeatureVector; + typedef std::vector< SPtr > FeatureVector; explicit FeatureArray(FeatureVector& features); @@ -61,14 +61,14 @@ public: LV2_Feature** _array; }; - void add_feature(SharedPtr feature); + void add_feature(SPtr feature); bool is_supported(const std::string& uri) const; - SharedPtr lv2_features(World* world, - Node* block) const; + SPtr lv2_features(World* world, + Node* block) const; private: - typedef std::vector< SharedPtr > Features; + typedef std::vector< SPtr > Features; Features _features; }; -- cgit v1.2.1