2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
15 \brief Jack inline template implementation */
22 #define prefix_ inline
23 //-/////////////////////////////////////////////////////////////////////////////////////////////////
25 template <class PacketType>
26 prefix_ senf::ppi::connector::ActiveInputJack<PacketType>::
27 ActiveInputJack(ActiveInput<PacketType> & input)
28 : GenericActiveInputJack (input)
31 template <class PacketType>
33 senf::ppi::connector::ActiveInputJack<PacketType>::ActiveInputJack(ActiveInput<> & input)
34 : GenericActiveInputJack (input)
37 template <class PacketType>
39 senf::ppi::connector::ActiveInputJack<PacketType>::ActiveInputJack(ActiveInputJack & input)
40 : GenericActiveInputJack (input.connector())
43 template <class PacketType>
45 senf::ppi::connector::ActiveInputJack<PacketType>::ActiveInputJack(ActiveInputJack<> & input)
46 : GenericActiveInputJack (input.connector())
49 template <class PacketType>
51 senf::ppi::connector::ActiveInputJack<PacketType>::reset(ActiveInput<PacketType> & input)
53 GenericActiveInputJack::reset(input);
56 template <class PacketType>
57 prefix_ void senf::ppi::connector::ActiveInputJack<PacketType>::reset(ActiveInput<> & input)
59 GenericActiveInputJack::reset(input);
62 template <class PacketType>
63 prefix_ void senf::ppi::connector::ActiveInputJack<PacketType>::reset(ActiveInputJack & input)
65 GenericActiveInputJack::reset(input);
68 template <class PacketType>
69 prefix_ void senf::ppi::connector::ActiveInputJack<PacketType>::reset(ActiveInputJack<> & input)
71 GenericActiveInputJack::reset(input.connector());
74 template <class PacketType>
75 prefix_ senf::ppi::connector::ActiveOutputJack<PacketType>::
76 ActiveOutputJack(ActiveOutput<PacketType> & output)
77 : GenericActiveOutputJack (output)
80 template <class PacketType>
82 senf::ppi::connector::ActiveOutputJack<PacketType>::ActiveOutputJack(ActiveOutput<> & output)
83 : GenericActiveOutputJack (output)
86 template <class PacketType>
87 prefix_ senf::ppi::connector::ActiveOutputJack<PacketType>::
88 ActiveOutputJack(ActiveOutputJack & output)
89 : GenericActiveOutputJack (output.connector())
92 template <class PacketType>
93 prefix_ senf::ppi::connector::ActiveOutputJack<PacketType>::
94 ActiveOutputJack(ActiveOutputJack<> & output)
95 : GenericActiveOutputJack (output.connector())
98 template <class PacketType>
100 senf::ppi::connector::ActiveOutputJack<PacketType>::reset(ActiveOutput<PacketType> & output)
102 GenericActiveOutputJack::reset(output);
105 template <class PacketType>
106 prefix_ void senf::ppi::connector::ActiveOutputJack<PacketType>::reset(ActiveOutput<> & output)
108 GenericActiveOutputJack::reset(output);
111 template <class PacketType>
113 senf::ppi::connector::ActiveOutputJack<PacketType>::reset(ActiveOutputJack & output)
115 GenericActiveOutputJack::reset(output);
118 template <class PacketType>
120 senf::ppi::connector::ActiveOutputJack<PacketType>::reset(ActiveOutputJack<> & output)
122 GenericActiveOutputJack::reset(output.connector());
125 template <class PacketType>
126 prefix_ senf::ppi::connector::PassiveInputJack<PacketType>::
127 PassiveInputJack(PassiveInput<PacketType> & input)
128 : GenericPassiveInputJack (input)
131 template <class PacketType>
133 senf::ppi::connector::PassiveInputJack<PacketType>::PassiveInputJack(PassiveInput<> & input)
134 : GenericPassiveInputJack (input)
137 template <class PacketType>
139 senf::ppi::connector::PassiveInputJack<PacketType>::PassiveInputJack(PassiveInputJack & input)
140 : GenericPassiveInputJack (input.connector())
143 template <class PacketType>
144 prefix_ senf::ppi::connector::PassiveInputJack<PacketType>::
145 PassiveInputJack(PassiveInputJack<> & input)
146 : GenericPassiveInputJack (input.connector())
149 template <class PacketType>
151 senf::ppi::connector::PassiveInputJack<PacketType>::reset(PassiveInput<PacketType> & input)
153 GenericPassiveInputJack::reset(input);
156 template <class PacketType>
157 prefix_ void senf::ppi::connector::PassiveInputJack<PacketType>::reset(PassiveInput<> & input)
159 GenericPassiveInputJack::reset(input);
162 template <class PacketType>
163 prefix_ void senf::ppi::connector::PassiveInputJack<PacketType>::reset(PassiveInputJack & input)
165 GenericPassiveInputJack::reset(input);
168 template <class PacketType>
170 senf::ppi::connector::PassiveInputJack<PacketType>::reset(PassiveInputJack<> & input)
172 GenericPassiveInputJack::reset(input.connector());
175 template <class PacketType>
176 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
177 PassiveOutputJack(PassiveOutput<PacketType> & output)
178 : GenericPassiveOutputJack (output)
181 template <class PacketType>
182 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
183 PassiveOutputJack(PassiveOutput<> & output)
184 : GenericPassiveOutputJack (output)
187 template <class PacketType>
188 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
189 PassiveOutputJack(PassiveOutputJack & output)
190 : GenericPassiveOutputJack (output.connector())
193 template <class PacketType>
194 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
195 PassiveOutputJack(PassiveOutputJack<> & output)
196 : GenericPassiveOutputJack (output.connector())
199 template <class PacketType>
201 senf::ppi::connector::PassiveOutputJack<PacketType>::reset(PassiveOutput<PacketType> & output)
203 GenericPassiveOutputJack::reset(output);
206 template <class PacketType>
208 senf::ppi::connector::PassiveOutputJack<PacketType>::reset(PassiveOutput<> & output)
210 GenericPassiveOutputJack::reset(output);
213 template <class PacketType>
215 senf::ppi::connector::PassiveOutputJack<PacketType>::reset(PassiveOutputJack & output)
217 GenericPassiveOutputJack::reset(output);
220 template <class PacketType>
222 senf::ppi::connector::PassiveOutputJack<PacketType>::reset(PassiveOutputJack<> & output)
224 GenericPassiveOutputJack::reset(output.connector());
229 senf::ppi::connect(connector::GenericActiveOutputJack & source, T & target,
230 typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
232 connect(source.connector(), target);
237 senf::ppi::connect(connector::GenericPassiveOutputJack & source, T & target,
238 typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
240 connect(source.connector(), target);
245 senf::ppi::connect(T & source, connector::GenericActiveInputJack & target,
246 typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
248 connect(source, target.connector());
253 senf::ppi::connect(T & source, connector::GenericPassiveInputJack & target,
254 typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
256 connect(source, target.connector());
259 //-/////////////////////////////////////////////////////////////////////////////////////////////////
266 // comment-column: 40
267 // c-file-style: "senf"
268 // indent-tabs-mode: nil
269 // ispell-local-dictionary: "american"
270 // compile-command: "scons -u test"