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 template <class PacketType>
48 senf::ppi::connector::ActiveInputJack<PacketType>::ActiveInputJack(ActiveInputJack & input)
49 : GenericActiveInputJack (input.connector())
52 template <class PacketType>
54 senf::ppi::connector::ActiveInputJack<PacketType>::ActiveInputJack(ActiveInputJack<> & input)
55 : GenericActiveInputJack (input.connector())
58 template <class PacketType>
60 senf::ppi::connector::ActiveInputJack<PacketType>::reset(ActiveInput<PacketType> & input)
62 GenericActiveInputJack::reset(input);
65 template <class PacketType>
66 prefix_ void senf::ppi::connector::ActiveInputJack<PacketType>::reset(ActiveInput<> & input)
68 GenericActiveInputJack::reset(input);
71 template <class PacketType>
72 prefix_ void senf::ppi::connector::ActiveInputJack<PacketType>::reset(ActiveInputJack & input)
74 GenericActiveInputJack::reset(input);
77 template <class PacketType>
78 prefix_ void senf::ppi::connector::ActiveInputJack<PacketType>::reset(ActiveInputJack<> & input)
80 GenericActiveInputJack::reset(input);
83 template <class PacketType>
84 prefix_ senf::ppi::connector::ActiveOutputJack<PacketType>::
85 ActiveOutputJack(ActiveOutput<PacketType> & output)
86 : GenericActiveOutputJack (output)
89 template <class PacketType>
91 senf::ppi::connector::ActiveOutputJack<PacketType>::ActiveOutputJack(ActiveOutput<> & output)
92 : GenericActiveOutputJack (output)
95 template <class PacketType>
96 prefix_ senf::ppi::connector::ActiveOutputJack<PacketType>::
97 ActiveOutputJack(ActiveOutputJack & output)
98 : GenericActiveOutputJack (output.connector())
101 template <class PacketType>
102 prefix_ senf::ppi::connector::ActiveOutputJack<PacketType>::
103 ActiveOutputJack(ActiveOutputJack<> & output)
104 : GenericActiveOutputJack (output.connector())
107 template <class PacketType>
109 senf::ppi::connector::ActiveOutputJack<PacketType>::reset(ActiveOutput<PacketType> & output)
111 GenericActiveOutputJack::reset(output);
114 template <class PacketType>
115 prefix_ void senf::ppi::connector::ActiveOutputJack<PacketType>::reset(ActiveOutput<> & output)
117 GenericActiveOutputJack::reset(output);
120 template <class PacketType>
122 senf::ppi::connector::ActiveOutputJack<PacketType>::reset(ActiveOutputJack & output)
124 GenericActiveOutputJack::reset(output);
127 template <class PacketType>
129 senf::ppi::connector::ActiveOutputJack<PacketType>::reset(ActiveOutputJack<> & output)
131 GenericActiveOutputJack::reset(output);
134 template <class PacketType>
135 prefix_ senf::ppi::connector::PassiveInputJack<PacketType>::
136 PassiveInputJack(PassiveInput<PacketType> & input)
137 : GenericPassiveInputJack (input)
140 template <class PacketType>
142 senf::ppi::connector::PassiveInputJack<PacketType>::PassiveInputJack(PassiveInput<> & input)
143 : GenericPassiveInputJack (input)
146 template <class PacketType>
148 senf::ppi::connector::PassiveInputJack<PacketType>::PassiveInputJack(PassiveInputJack & input)
149 : GenericPassiveInputJack (input.connector())
152 template <class PacketType>
153 prefix_ senf::ppi::connector::PassiveInputJack<PacketType>::
154 PassiveInputJack(PassiveInputJack<> & input)
155 : GenericPassiveInputJack (input.connector())
158 template <class PacketType>
160 senf::ppi::connector::PassiveInputJack<PacketType>::reset(PassiveInput<PacketType> & input)
162 GenericPassiveInputJack::reset(input);
165 template <class PacketType>
166 prefix_ void senf::ppi::connector::PassiveInputJack<PacketType>::reset(PassiveInput<> & input)
168 GenericPassiveInputJack::reset(input);
171 template <class PacketType>
172 prefix_ void senf::ppi::connector::PassiveInputJack<PacketType>::reset(PassiveInputJack & input)
174 GenericPassiveInputJack::reset(input);
177 template <class PacketType>
179 senf::ppi::connector::PassiveInputJack<PacketType>::reset(PassiveInputJack<> & input)
181 GenericPassiveInputJack::reset(input);
184 template <class PacketType>
185 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
186 PassiveOutputJack(PassiveOutput<PacketType> & output)
187 : GenericPassiveOutputJack (output)
190 template <class PacketType>
191 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
192 PassiveOutputJack(PassiveOutput<> & output)
193 : GenericPassiveOutputJack (output)
196 template <class PacketType>
197 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
198 PassiveOutputJack(PassiveOutputJack & output)
199 : GenericPassiveOutputJack (output.connector())
202 template <class PacketType>
203 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
204 PassiveOutputJack(PassiveOutputJack<> & output)
205 : GenericPassiveOutputJack (output.connector())
208 template <class PacketType>
210 senf::ppi::connector::PassiveOutputJack<PacketType>::reset(PassiveOutput<PacketType> & output)
212 GenericPassiveOutputJack::reset(output);
215 template <class PacketType>
217 senf::ppi::connector::PassiveOutputJack<PacketType>::reset(PassiveOutput<> & output)
219 GenericPassiveOutputJack::reset(output);
222 template <class PacketType>
224 senf::ppi::connector::PassiveOutputJack<PacketType>::reset(PassiveOutputJack & output)
226 GenericPassiveOutputJack::reset(output);
229 template <class PacketType>
231 senf::ppi::connector::PassiveOutputJack<PacketType>::reset(PassiveOutputJack<> & output)
233 GenericPassiveOutputJack::reset(output);
238 senf::ppi::connect(connector::GenericActiveOutputJack & source, T & target,
239 typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
241 connect(source.connector(), target);
246 senf::ppi::connect(connector::GenericPassiveOutputJack & source, T & target,
247 typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
249 connect(source.connector(), target);
254 senf::ppi::connect(T & source, connector::GenericActiveInputJack & target,
255 typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
257 connect(source, target.connector());
262 senf::ppi::connect(T & source, connector::GenericPassiveInputJack & target,
263 typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
265 connect(source, target.connector());
268 ///////////////////////////////cti.e///////////////////////////////////////
275 // comment-column: 40
276 // c-file-style: "senf"
277 // indent-tabs-mode: nil
278 // ispell-local-dictionary: "american"
279 // compile-command: "scons -u test"