From 60383a1c773e10bb87977aff04b1adba08d23d34 Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Mon, 4 Apr 2016 10:20:01 +0200 Subject: [PATCH] dataflow_cpp: added missing connection checks in Outputs --- dataflow_cpp/include/embb/dataflow/internal/outputs.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/dataflow_cpp/include/embb/dataflow/internal/outputs.h b/dataflow_cpp/include/embb/dataflow/internal/outputs.h index 2fce315..dee7e9d 100644 --- a/dataflow_cpp/include/embb/dataflow/internal/outputs.h +++ b/dataflow_cpp/include/embb/dataflow/internal/outputs.h @@ -85,6 +85,11 @@ class Outputs, Out, Out, embb::base::internal::Nil, embb::base::internal::Nil> { public: + bool IsFullyConnected() { + return this->template Get<0>().IsConnected() && + this->template Get<1>().IsConnected() && + this->template Get<2>().IsConnected(); + } }; template @@ -92,6 +97,12 @@ class Outputs : public Tuple, Out, Out, Out, embb::base::internal::Nil>{ public: + bool IsFullyConnected() { + return this->template Get<0>().IsConnected() && + this->template Get<1>().IsConnected() && + this->template Get<2>().IsConnected() && + this->template Get<3>().IsConnected(); + } }; template , Out, Out, Out, Out > { public: + bool IsFullyConnected() { + return this->template Get<0>().IsConnected() && + this->template Get<1>().IsConnected() && + this->template Get<2>().IsConnected() && + this->template Get<3>().IsConnected() && + this->template Get<4>().IsConnected(); + } }; } // namespace internal -- libgit2 0.26.0