Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50101 - in sandbox/dataflow-rewrite: boost/dataflow/managed libs/dataflow/src/managed
From: stipe_at_[hidden]
Date: 2008-12-03 17:44:55


Author: srajko
Date: 2008-12-03 17:44:54 EST (Wed, 03 Dec 2008)
New Revision: 50101
URL: http://svn.boost.org/trac/boost/changeset/50101

Log:
managed component registers itself on copy construction
Text files modified:
   sandbox/dataflow-rewrite/boost/dataflow/managed/component.hpp | 1 +
   sandbox/dataflow-rewrite/libs/dataflow/src/managed/component.cpp | 5 +++++
   2 files changed, 6 insertions(+), 0 deletions(-)

Modified: sandbox/dataflow-rewrite/boost/dataflow/managed/component.hpp
==============================================================================
--- sandbox/dataflow-rewrite/boost/dataflow/managed/component.hpp (original)
+++ sandbox/dataflow-rewrite/boost/dataflow/managed/component.hpp 2008-12-03 17:44:54 EST (Wed, 03 Dec 2008)
@@ -14,6 +14,7 @@
 {
 public:
     component(network &network_context);
+ component(const component &other);
     virtual ~component();
     network &network_context()
     { return m_network_context; }

Modified: sandbox/dataflow-rewrite/libs/dataflow/src/managed/component.cpp
==============================================================================
--- sandbox/dataflow-rewrite/libs/dataflow/src/managed/component.cpp (original)
+++ sandbox/dataflow-rewrite/libs/dataflow/src/managed/component.cpp 2008-12-03 17:44:54 EST (Wed, 03 Dec 2008)
@@ -13,6 +13,11 @@
     network_context.register_component(this);
 };
 
+component::component(const component &other) : m_network_context(other.m_network_context), m_topological_sort_index(0)
+{
+ m_network_context.register_component(this);
+}
+
 component::~component()
 {
     m_network_context.unregister_component(this);


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk