17 #ifndef HH_SENF_PPI_Setup_ 18 #define HH_SENF_PPI_Setup_ 1 21 #include <boost/type_traits/is_base_of.hpp> 22 #include <boost/utility/enable_if.hpp> 73 template <
class T,
class C>
74 void connect(T & source, C & target,
75 typename boost::disable_if< boost::is_base_of<connector::Connector, T> >::
type * = 0,
76 typename boost::enable_if< boost::is_base_of<connector::Connector, C> >::
type * = 0,
77 typename boost::disable_if< boost::is_base_of<detail::DisableStandardOutput, T> >::
type * = 0);
79 template <
class C,
class T>
80 void connect(C & source, T & target,
81 typename boost::enable_if< boost::is_base_of<connector::Connector, C> >::
type * = 0,
82 typename boost::disable_if< boost::is_base_of<connector::Connector,T> >::
type * = 0,
83 typename boost::disable_if< boost::is_base_of<detail::DisableStandardInput, T> >::
type * = 0);
85 template <
class T1,
class T2>
86 void connect(T1 & source, T2 & target,
87 typename boost::disable_if< boost::is_base_of<connector::Connector, T1> >::
type * = 0,
88 typename boost::disable_if< boost::is_base_of<connector::Connector, T2> >::
type * = 0,
89 typename boost::disable_if< boost::is_base_of<detail::DisableStandardOutput, T1> >::
type * = 0,
90 typename boost::disable_if< boost::is_base_of<detail::DisableStandardInput, T2> >::
type * = 0);
void init()
Manually initialize the network.
Combination of PassiveConnector and OutputConnector.
Output connector base-class.
Combination of ActiveConnector and OutputConnector.
void connect(connector::FastActiveOutput< PacketType > &source, connector::FastPassiveInput< PacketType > &target)
void run()
Start the network.