4 // Fraunhofer Institute for Open Communication Systems (FOKUS)
5 // Competence Center NETwork research (NET), St. Augustin, GERMANY
6 // Stefan Bund <g0dil@berlios.de>
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the
20 // Free Software Foundation, Inc.,
21 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 \brief Jack inline template implementation */
31 #define prefix_ inline
32 ///////////////////////////////cti.p///////////////////////////////////////
34 template <class PacketType>
35 prefix_ senf::ppi::connector::ActiveInputJack<PacketType>::
36 ActiveInputJack(ActiveInput<PacketType> & input)
37 : GenericActiveInputJack (input)
40 template <class PacketType>
42 senf::ppi::connector::ActiveInputJack<PacketType>::ActiveInputJack(ActiveInput<> & input)
43 : GenericActiveInputJack (input)
46 prefix_ senf::ppi::connector::ActiveInputJack<senf::Packet>::ActiveInputJack(ActiveInput<> & input)
47 : GenericActiveInputJack (input)
50 template <class PacketType>
51 prefix_ senf::ppi::connector::ActiveOutputJack<PacketType>::
52 ActiveOutputJack(ActiveOutput<PacketType> & output)
53 : GenericActiveOutputJack (output)
56 template <class PacketType>
58 senf::ppi::connector::ActiveOutputJack<PacketType>::ActiveOutputJack(ActiveOutput<> & output)
59 : GenericActiveOutputJack (output)
63 senf::ppi::connector::ActiveOutputJack<senf::Packet>::ActiveOutputJack(ActiveOutput<> & output)
64 : GenericActiveOutputJack (output)
67 template <class PacketType>
68 prefix_ senf::ppi::connector::PassiveInputJack<PacketType>::
69 PassiveInputJack(PassiveInput<PacketType> & input)
70 : GenericPassiveInputJack (input)
73 template <class PacketType>
75 senf::ppi::connector::PassiveInputJack<PacketType>::PassiveInputJack(PassiveInput<> & input)
76 : GenericPassiveInputJack (input)
80 senf::ppi::connector::PassiveInputJack<senf::Packet>::PassiveInputJack(PassiveInput<> & input)
81 : GenericPassiveInputJack (input)
84 template <class PacketType>
85 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
86 PassiveOutputJack(PassiveOutput<PacketType> & output)
87 : GenericPassiveOutputJack (output)
90 template <class PacketType>
91 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
92 PassiveOutputJack(PassiveOutput<> & output)
93 : GenericPassiveOutputJack (output)
97 senf::ppi::connector::PassiveOutputJack<senf::Packet>::PassiveOutputJack(PassiveOutput<> & output)
98 : GenericPassiveOutputJack (output)
103 senf::ppi::connect(connector::GenericActiveOutputJack & source, T & target,
104 typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
106 connect(source.connector(), target);
111 senf::ppi::connect(connector::GenericPassiveOutputJack & source, T & target,
112 typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
114 connect(source.connector(), target);
119 senf::ppi::connect(T & source, connector::GenericActiveInputJack & target,
120 typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
122 connect(source, target.connector());
127 senf::ppi::connect(T & source, connector::GenericPassiveInputJack & target,
128 typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
130 connect(source, target.connector());
133 ///////////////////////////////cti.e///////////////////////////////////////
140 // comment-column: 40
141 // c-file-style: "senf"
142 // indent-tabs-mode: nil
143 // ispell-local-dictionary: "american"
144 // compile-command: "scons -u test"