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 /ingen/serialisation | |
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 'ingen/serialisation')
-rw-r--r-- | ingen/serialisation/Serialiser.hpp | 19 |
1 files changed, 9 insertions, 10 deletions
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 <string> #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<const Node> object, - const std::string& filename); + virtual void to_file(SPtr<const Node> object, + const std::string& filename); - virtual void write_bundle(SharedPtr<const Node> graph, - const std::string& path); + virtual void write_bundle(SPtr<const Node> graph, + const std::string& path); - virtual std::string to_string(SharedPtr<const Node> object, - const std::string& base_uri); + virtual std::string to_string(SPtr<const Node> object, + const std::string& base_uri); virtual void start_to_string(const Raul::Path& root, const std::string& base_uri); - virtual void serialise(SharedPtr<const Node> object) + virtual void serialise(SPtr<const Node> object) throw (std::logic_error); - virtual void serialise_arc(const Sord::Node& parent, - SharedPtr<const Arc> arc) + virtual void serialise_arc(const Sord::Node& parent, + SPtr<const Arc> arc) throw (std::logic_error); virtual std::string finish(); |