Jack.cti
Go to the documentation of this file.
1 //
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
6 //
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
11 //
12 
13 
14 /** \file
15  \brief Jack inline template implementation */
16 
17 //#include "Jack.ih"
18 
19 // Custom includes
20 #include "Setup.hh"
21 
22 #define prefix_ inline
23 //-/////////////////////////////////////////////////////////////////////////////////////////////////
24 
25 template <class PacketType>
26 prefix_ senf::ppi::connector::ActiveInputJack<PacketType>::
27 ActiveInputJack(ActiveInput<PacketType> & input)
28  : GenericActiveInputJack (input)
29 {}
30 
31 template <class PacketType>
32 prefix_
33 senf::ppi::connector::ActiveInputJack<PacketType>::ActiveInputJack(ActiveInput<> & input)
34  : GenericActiveInputJack (input)
35 {}
36 
37 template <class PacketType>
38 prefix_
39 senf::ppi::connector::ActiveInputJack<PacketType>::ActiveInputJack(ActiveInputJack & input)
40  : GenericActiveInputJack (input.connector())
41 {}
42 
43 template <class PacketType>
44 prefix_
45 senf::ppi::connector::ActiveInputJack<PacketType>::ActiveInputJack(ActiveInputJack<> & input)
46  : GenericActiveInputJack (input.connector())
47 {}
48 
49 template <class PacketType>
50 prefix_ void
51 senf::ppi::connector::ActiveInputJack<PacketType>::reset(ActiveInput<PacketType> & input)
52 {
53  GenericActiveInputJack::reset(input);
54 }
55 
56 template <class PacketType>
57 prefix_ void senf::ppi::connector::ActiveInputJack<PacketType>::reset(ActiveInput<> & input)
58 {
59  GenericActiveInputJack::reset(input);
60 }
61 
62 template <class PacketType>
63 prefix_ void senf::ppi::connector::ActiveInputJack<PacketType>::reset(ActiveInputJack & input)
64 {
65  GenericActiveInputJack::reset(input);
66 }
67 
68 template <class PacketType>
69 prefix_ void senf::ppi::connector::ActiveInputJack<PacketType>::reset(ActiveInputJack<> & input)
70 {
71  GenericActiveInputJack::reset(input.connector());
72 }
73 
74 template <class PacketType>
75 prefix_ senf::ppi::connector::ActiveOutputJack<PacketType>::
76 ActiveOutputJack(ActiveOutput<PacketType> & output)
77  : GenericActiveOutputJack (output)
78 {}
79 
80 template <class PacketType>
81 prefix_
82 senf::ppi::connector::ActiveOutputJack<PacketType>::ActiveOutputJack(ActiveOutput<> & output)
83  : GenericActiveOutputJack (output)
84 {}
85 
86 template <class PacketType>
87 prefix_ senf::ppi::connector::ActiveOutputJack<PacketType>::
88 ActiveOutputJack(ActiveOutputJack & output)
89  : GenericActiveOutputJack (output.connector())
90 {}
91 
92 template <class PacketType>
93 prefix_ senf::ppi::connector::ActiveOutputJack<PacketType>::
94 ActiveOutputJack(ActiveOutputJack<> & output)
95  : GenericActiveOutputJack (output.connector())
96 {}
97 
98 template <class PacketType>
99 prefix_ void
100 senf::ppi::connector::ActiveOutputJack<PacketType>::reset(ActiveOutput<PacketType> & output)
101 {
102  GenericActiveOutputJack::reset(output);
103 }
104 
105 template <class PacketType>
106 prefix_ void senf::ppi::connector::ActiveOutputJack<PacketType>::reset(ActiveOutput<> & output)
107 {
108  GenericActiveOutputJack::reset(output);
109 }
110 
111 template <class PacketType>
112 prefix_ void
113 senf::ppi::connector::ActiveOutputJack<PacketType>::reset(ActiveOutputJack & output)
114 {
115  GenericActiveOutputJack::reset(output);
116 }
117 
118 template <class PacketType>
119 prefix_ void
120 senf::ppi::connector::ActiveOutputJack<PacketType>::reset(ActiveOutputJack<> & output)
121 {
122  GenericActiveOutputJack::reset(output.connector());
123 }
124 
125 template <class PacketType>
126 prefix_ senf::ppi::connector::PassiveInputJack<PacketType>::
127 PassiveInputJack(PassiveInput<PacketType> & input)
128  : GenericPassiveInputJack (input)
129 {}
130 
131 template <class PacketType>
132 prefix_
133 senf::ppi::connector::PassiveInputJack<PacketType>::PassiveInputJack(PassiveInput<> & input)
134  : GenericPassiveInputJack (input)
135 {}
136 
137 template <class PacketType>
138 prefix_
139 senf::ppi::connector::PassiveInputJack<PacketType>::PassiveInputJack(PassiveInputJack & input)
140  : GenericPassiveInputJack (input.connector())
141 {}
142 
143 template <class PacketType>
144 prefix_ senf::ppi::connector::PassiveInputJack<PacketType>::
145 PassiveInputJack(PassiveInputJack<> & input)
146  : GenericPassiveInputJack (input.connector())
147 {}
148 
149 template <class PacketType>
150 prefix_ void
151 senf::ppi::connector::PassiveInputJack<PacketType>::reset(PassiveInput<PacketType> & input)
152 {
153  GenericPassiveInputJack::reset(input);
154 }
155 
156 template <class PacketType>
157 prefix_ void senf::ppi::connector::PassiveInputJack<PacketType>::reset(PassiveInput<> & input)
158 {
159  GenericPassiveInputJack::reset(input);
160 }
161 
162 template <class PacketType>
163 prefix_ void senf::ppi::connector::PassiveInputJack<PacketType>::reset(PassiveInputJack & input)
164 {
165  GenericPassiveInputJack::reset(input);
166 }
167 
168 template <class PacketType>
169 prefix_ void
170 senf::ppi::connector::PassiveInputJack<PacketType>::reset(PassiveInputJack<> & input)
171 {
172  GenericPassiveInputJack::reset(input.connector());
173 }
174 
175 template <class PacketType>
176 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
177 PassiveOutputJack(PassiveOutput<PacketType> & output)
178  : GenericPassiveOutputJack (output)
179 {}
180 
181 template <class PacketType>
182 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
183 PassiveOutputJack(PassiveOutput<> & output)
184  : GenericPassiveOutputJack (output)
185 {}
186 
187 template <class PacketType>
188 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
189 PassiveOutputJack(PassiveOutputJack & output)
190  : GenericPassiveOutputJack (output.connector())
191 {}
192 
193 template <class PacketType>
194 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
195 PassiveOutputJack(PassiveOutputJack<> & output)
196  : GenericPassiveOutputJack (output.connector())
197 {}
198 
199 template <class PacketType>
200 prefix_ void
201 senf::ppi::connector::PassiveOutputJack<PacketType>::reset(PassiveOutput<PacketType> & output)
202 {
203  GenericPassiveOutputJack::reset(output);
204 }
205 
206 template <class PacketType>
207 prefix_ void
208 senf::ppi::connector::PassiveOutputJack<PacketType>::reset(PassiveOutput<> & output)
209 {
210  GenericPassiveOutputJack::reset(output);
211 }
212 
213 template <class PacketType>
214 prefix_ void
215 senf::ppi::connector::PassiveOutputJack<PacketType>::reset(PassiveOutputJack & output)
216 {
217  GenericPassiveOutputJack::reset(output);
218 }
219 
220 template <class PacketType>
221 prefix_ void
222 senf::ppi::connector::PassiveOutputJack<PacketType>::reset(PassiveOutputJack<> & output)
223 {
224  GenericPassiveOutputJack::reset(output.connector());
225 }
226 
227 template <class T>
228 prefix_ void
229 senf::ppi::connect(connector::GenericActiveOutputJack & source, T & target,
230  typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
231 {
232  connect(source.connector(), target);
233 }
234 
235 template <class T>
236 prefix_ void
237 senf::ppi::connect(connector::GenericPassiveOutputJack & source, T & target,
238  typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
239 {
240  connect(source.connector(), target);
241 }
242 
243 template <class T>
244 prefix_ void
245 senf::ppi::connect(T & source, connector::GenericActiveInputJack & target,
246  typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
247 {
248  connect(source, target.connector());
249 }
250 
251 template <class T>
252 prefix_ void
253 senf::ppi::connect(T & source, connector::GenericPassiveInputJack & target,
254  typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
255 {
256  connect(source, target.connector());
257 }
258 
259 //-/////////////////////////////////////////////////////////////////////////////////////////////////
260 #undef prefix_
261 
262 
263 // Local Variables:
264 // mode: c++
265 // fill-column: 100
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"
271 // End: