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/serialisation/Serialiser.hpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'ingen/serialisation') diff --git a/ingen/serialisation/Serialiser.hpp b/ingen/serialisation/Serialiser.hpp index 979fee62..d0b65893 100644 --- a/ingen/serialisation/Serialiser.hpp +++ b/ingen/serialisation/Serialiser.hpp @@ -21,7 +21,6 @@ #include #include "raul/Path.hpp" -#include "raul/SharedPtr.hpp" #include "sord/sordmm.hpp" @@ -49,23 +48,23 @@ public: typedef Node::Properties Properties; - virtual void to_file(SharedPtr object, - const std::string& filename); + virtual void to_file(SPtr object, + const std::string& filename); - virtual void write_bundle(SharedPtr graph, - const std::string& path); + virtual void write_bundle(SPtr graph, + const std::string& path); - virtual std::string to_string(SharedPtr object, - const std::string& base_uri); + virtual std::string to_string(SPtr object, + const std::string& base_uri); virtual void start_to_string(const Raul::Path& root, const std::string& base_uri); - virtual void serialise(SharedPtr object) + virtual void serialise(SPtr object) throw (std::logic_error); - virtual void serialise_arc(const Sord::Node& parent, - SharedPtr arc) + virtual void serialise_arc(const Sord::Node& parent, + SPtr arc) throw (std::logic_error); virtual std::string finish(); -- cgit v1.2.1