PPI/Ratefilter: added interval setter and unit tests
[senf.git] / PPI / Setup.cti
index 93048d2..f18f8b4 100644 (file)
@@ -1,8 +1,8 @@
 // $Id$
 //
-// Copyright (C) 2007 
-// Fraunhofer Institute for Open Communication Systems (FOKUS) 
-// Competence Center NETwork research (NET), St. Augustin, GERMANY 
+// Copyright (C) 2007
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
 //     Stefan Bund <g0dil@berlios.de>
 //
 // This program is free software; you can redistribute it and/or modify
@@ -36,7 +36,8 @@ template <class T, class C>
 prefix_ void senf::ppi::
 connect(T & source, C & target,
         typename boost::disable_if< boost::is_base_of<connector::Connector, T> >::type *,
-        typename boost::enable_if< boost::is_base_of<connector::Connector, C> >::type *)
+        typename boost::enable_if< boost::is_base_of<connector::Connector, C> >::type *,
+        typename boost::disable_if< boost::is_base_of<connector::Jack, T> >:: type *)
 {
     connect(source.output, target);
 }
@@ -45,7 +46,8 @@ template <class C, class T>
 prefix_ void senf::ppi::
 connect(C & source, T & target,
         typename boost::enable_if< boost::is_base_of<connector::Connector, C> >::type *,
-        typename boost::disable_if< boost::is_base_of<connector::Connector,T> >::type *)
+        typename boost::disable_if< boost::is_base_of<connector::Connector,T> >::type *,
+        typename boost::disable_if< boost::is_base_of<connector::Jack, T> >:: type *)
 {
     connect(source, target.input);
 }
@@ -54,7 +56,9 @@ template <class T1, class T2>
 prefix_ void senf::ppi::
 connect(T1 & source, T2 & target,
         typename boost::disable_if< boost::is_base_of<connector::Connector, T1> >::type *,
-        typename boost::disable_if< boost::is_base_of<connector::Connector, T2> >::type *)
+        typename boost::disable_if< boost::is_base_of<connector::Connector, T2> >::type *,
+        typename boost::disable_if< boost::is_base_of<connector::Jack, T1> >:: type *,
+        typename boost::disable_if< boost::is_base_of<connector::Jack, T2> >:: type *)
 {
     connect(source.output, target.input);
 }