00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00026
00027
00028
00029 #include "Jack.hh"
00030
00031 #define prefix_ inline
00032
00033
00034 #ifndef DOXYGEN
00035
00036 template <class T, class C>
00037 prefix_ void senf::ppi::
00038 connect(T & source, C & target,
00039 typename boost::disable_if< boost::is_base_of<connector::Connector, T> >::type *,
00040 typename boost::enable_if< boost::is_base_of<connector::Connector, C> >::type *,
00041 typename boost::disable_if< boost::is_base_of<detail::DisableStandardOutput, T> >::type *)
00042 {
00043 connect(source.output, target);
00044 }
00045
00046 template <class C, class T>
00047 prefix_ void senf::ppi::
00048 connect(C & source, T & target,
00049 typename boost::enable_if< boost::is_base_of<connector::Connector, C> >::type *,
00050 typename boost::disable_if< boost::is_base_of<connector::Connector,T> >::type *,
00051 typename boost::disable_if< boost::is_base_of<detail::DisableStandardInput, T> >::type *)
00052 {
00053 connect(source, target.input);
00054 }
00055
00056 template <class T1, class T2>
00057 prefix_ void senf::ppi::
00058 connect(T1 & source, T2 & target,
00059 typename boost::disable_if< boost::is_base_of<connector::Connector, T1> >::type *,
00060 typename boost::disable_if< boost::is_base_of<connector::Connector, T2> >::type *,
00061 typename boost::disable_if< boost::is_base_of<detail::DisableStandardOutput, T1> >::type *,
00062 typename boost::disable_if< boost::is_base_of<detail::DisableStandardInput, T2> >::type *)
00063 {
00064 connect(source.output, target.input);
00065 }
00066
00067 #endif
00068
00069
00070 #undef prefix_
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081