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 /src/socket/SocketClient.hpp | |
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 'src/socket/SocketClient.hpp')
-rw-r--r-- | src/socket/SocketClient.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/socket/SocketClient.hpp b/src/socket/SocketClient.hpp index 14227c90..b05cb343 100644 --- a/src/socket/SocketClient.hpp +++ b/src/socket/SocketClient.hpp @@ -27,10 +27,10 @@ namespace Socket { class SocketClient : public SocketWriter { public: - SocketClient(World& world, - const Raul::URI& uri, - SharedPtr<Socket> sock, - SharedPtr<Interface> respondee) + SocketClient(World& world, + const Raul::URI& uri, + SPtr<Socket> sock, + SPtr<Interface> respondee) : SocketWriter(world.uri_map(), world.uris(), uri, sock) , _respondee(respondee) , _reader(world, *respondee.get(), sock) @@ -38,17 +38,17 @@ public: _reader.start(); } - virtual SharedPtr<Interface> respondee() const { + virtual SPtr<Interface> respondee() const { return _respondee; } - virtual void set_respondee(SharedPtr<Interface> respondee) { + virtual void set_respondee(SPtr<Interface> respondee) { _respondee = respondee; } private: - SharedPtr<Interface> _respondee; - SocketReader _reader; + SPtr<Interface> _respondee; + SocketReader _reader; }; } // namespace Socket |