From 31edd6a85f52c855d54594dc9f8ceda694d3ebea Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 1 Aug 2015 17:18:24 +0200 Subject: Switch to C++11, remove boost::shared_ptr --- src/Flowgraph.h | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'src/Flowgraph.h') diff --git a/src/Flowgraph.h b/src/Flowgraph.h index 1129668..9c6c2d8 100644 --- a/src/Flowgraph.h +++ b/src/Flowgraph.h @@ -34,24 +34,23 @@ #include "porting.h" #include "ModPlugin.h" - +#include #include #include -#include class Node { public: - Node(boost::shared_ptr plugin); + Node(std::shared_ptr plugin); ~Node(); Node(const Node&); Node& operator=(const Node&); - boost::shared_ptr plugin() { return myPlugin; } + std::shared_ptr plugin() { return myPlugin; } - std::vector > myInputBuffers; - std::vector > myOutputBuffers; + std::vector > myInputBuffers; + std::vector > myOutputBuffers; int process(); time_t processTime() { return myProcessTime; } @@ -60,7 +59,7 @@ public: } protected: - boost::shared_ptr myPlugin; + std::shared_ptr myPlugin; time_t myProcessTime; }; @@ -68,15 +67,15 @@ protected: class Edge { public: - Edge(boost::shared_ptr& src, boost::shared_ptr& dst); + Edge(std::shared_ptr& src, std::shared_ptr& dst); ~Edge(); Edge(const Edge&); Edge& operator=(const Edge&); protected: - boost::shared_ptr mySrcNode; - boost::shared_ptr myDstNode; - boost::shared_ptr myBuffer; + std::shared_ptr mySrcNode; + std::shared_ptr myDstNode; + std::shared_ptr myBuffer; }; @@ -88,13 +87,13 @@ public: Flowgraph(const Flowgraph&); Flowgraph& operator=(const Flowgraph&); - void connect(boost::shared_ptr input, - boost::shared_ptr output); + void connect(std::shared_ptr input, + std::shared_ptr output); bool run(); protected: - std::vector > nodes; - std::vector > edges; + std::vector > nodes; + std::vector > edges; time_t myProcessTime; }; -- cgit v1.2.3