Jack.cci
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 non-template implementation */
16 
17 //#include "Jack.ih"
18 
19 // Custom includes
20 #include "Setup.hh"
21 
22 #define prefix_ inline
23 //-/////////////////////////////////////////////////////////////////////////////////////////////////
24 
25 prefix_ senf::ppi::connector::GenericActiveInputJack::
26 GenericActiveInputJack(GenericActiveInput & input)
27  : input_ (&input)
28 {}
29 
30 prefix_ senf::ppi::connector::GenericActiveInput &
31 senf::ppi::connector::GenericActiveInputJack::connector()
32 {
33  return *input_;
34 }
35 
36 prefix_ senf::ppi::connector::GenericActiveInput *
37 senf::ppi::connector::GenericActiveInputJack::operator->()
38 {
39  return input_;
40 }
41 
42 prefix_ senf::ppi::connector::GenericActiveOutputJack::
43 GenericActiveOutputJack(GenericActiveOutput & output)
44  : output_ (&output)
45 {}
46 
47 prefix_ senf::ppi::connector::GenericActiveOutput &
48 senf::ppi::connector::GenericActiveOutputJack::connector()
49 {
50  return *output_;
51 }
52 
53 prefix_ senf::ppi::connector::GenericActiveOutput *
54 senf::ppi::connector::GenericActiveOutputJack::operator->()
55 {
56  return output_;
57 }
58 
59 prefix_ senf::ppi::connector::GenericPassiveInputJack::
60 GenericPassiveInputJack(GenericPassiveInput & input)
61  : input_ (&input)
62 {}
63 
64 prefix_ senf::ppi::connector::GenericPassiveInput &
65 senf::ppi::connector::GenericPassiveInputJack::connector()
66 {
67  return *input_;
68 }
69 
70 prefix_ senf::ppi::connector::GenericPassiveInput *
71 senf::ppi::connector::GenericPassiveInputJack::operator->()
72 {
73  return input_;
74 }
75 
76 prefix_ senf::ppi::connector::GenericPassiveOutputJack::
77 GenericPassiveOutputJack(GenericPassiveOutput & output)
78  : output_ (&output)
79 {}
80 
81 prefix_ senf::ppi::connector::GenericPassiveOutput &
82 senf::ppi::connector::GenericPassiveOutputJack::connector()
83 {
84  return *output_;
85 }
86 
87 prefix_ senf::ppi::connector::GenericPassiveOutput *
88 senf::ppi::connector::GenericPassiveOutputJack::operator->()
89 {
90  return output_;
91 }
92 
93 prefix_ senf::ppi::connector::ActiveInputJack<senf::Packet>::
94 ActiveInputJack(GenericActiveInput & input)
95  : GenericActiveInputJack (input)
96 {}
97 
98 prefix_ senf::ppi::connector::ActiveInputJack<senf::Packet>::
99 ActiveInputJack(GenericActiveInputJack input)
100  : GenericActiveInputJack (input.connector())
101 {}
102 
103 prefix_ void senf::ppi::connector::ActiveInputJack<senf::Packet>::reset(GenericActiveInput & input)
104 {
105  GenericActiveInputJack::reset(input);
106 }
107 
108 prefix_ void senf::ppi::connector::ActiveInputJack<senf::Packet>::reset(GenericActiveInputJack input)
109 {
110  GenericActiveInputJack::reset(input.connector());
111 }
112 
113 prefix_ senf::ppi::connector::ActiveOutputJack<senf::Packet>::
114 ActiveOutputJack(GenericActiveOutput & output)
115  : GenericActiveOutputJack (output)
116 {}
117 
118 prefix_ senf::ppi::connector::ActiveOutputJack<senf::Packet>::
119 ActiveOutputJack(GenericActiveOutputJack & output)
120  : GenericActiveOutputJack (output.connector())
121 {}
122 
123 prefix_ void senf::ppi::connector::ActiveOutputJack<senf::Packet>::reset(GenericActiveOutput & output)
124 {
125  GenericActiveOutputJack::reset(output);
126 }
127 
128 prefix_ void
129 senf::ppi::connector::ActiveOutputJack<senf::Packet>::reset(GenericActiveOutputJack & output)
130 {
131  GenericActiveOutputJack::reset(output.connector());
132 }
133 
134 prefix_ senf::ppi::connector::PassiveInputJack<senf::Packet>::
135 PassiveInputJack(GenericPassiveInput & input)
136  : GenericPassiveInputJack (input)
137 {}
138 
139 prefix_ senf::ppi::connector::PassiveInputJack<senf::Packet>::
140 PassiveInputJack(GenericPassiveInputJack & input)
141  : GenericPassiveInputJack (input.connector())
142 {}
143 
144 prefix_ void senf::ppi::connector::PassiveInputJack<senf::Packet>::reset(GenericPassiveInput & input)
145 {
146  GenericPassiveInputJack::reset(input);
147 }
148 
149 prefix_ void
150 senf::ppi::connector::PassiveInputJack<senf::Packet>::reset(GenericPassiveInputJack & input)
151 {
152  GenericPassiveInputJack::reset(input.connector());
153 }
154 
155 prefix_ senf::ppi::connector::PassiveOutputJack<senf::Packet>::
156 PassiveOutputJack(GenericPassiveOutput & output)
157  : GenericPassiveOutputJack (output)
158 {}
159 
160 prefix_ senf::ppi::connector::PassiveOutputJack<senf::Packet>::
161 PassiveOutputJack(GenericPassiveOutputJack & output)
162  : GenericPassiveOutputJack (output.connector())
163 {}
164 
165 prefix_ void
166 senf::ppi::connector::PassiveOutputJack<senf::Packet>::reset(GenericPassiveOutput & output)
167 {
168  GenericPassiveOutputJack::reset(output);
169 }
170 
171 prefix_ void
172 senf::ppi::connector::PassiveOutputJack<senf::Packet>::reset(GenericPassiveOutputJack & output)
173 {
174  GenericPassiveOutputJack::reset(output.connector());
175 }
176 
177 prefix_ void senf::ppi::connect(connector::GenericActiveOutputJack & source,
178  connector::GenericPassiveInputJack & target)
179 {
180  connect(source.connector(), target.connector());
181 }
182 
183 prefix_ void senf::ppi::connect(connector::GenericPassiveOutputJack & source,
184  connector::GenericActiveInputJack & target)
185 {
186  connect(source.connector(), target.connector());
187 }
188 
189 prefix_ void senf::ppi::connect(connector::GenericActiveOutputJack & source,
190  connector::GenericPassiveInput & target)
191 {
192  connect(source.connector(), target);
193 }
194 
195 prefix_ void senf::ppi::connect(connector::GenericPassiveOutputJack & source,
196  connector::GenericActiveInput & target)
197 {
198  connect(source.connector(), target);
199 }
200 
201 prefix_ void senf::ppi::connect(connector::GenericActiveOutput & source,
202  connector::GenericPassiveInputJack & target)
203 {
204  connect(source, target.connector());
205 }
206 
207 prefix_ void senf::ppi::connect(connector::GenericPassiveOutput & source,
208  connector::GenericActiveInputJack & target)
209 {
210  connect(source, target.connector());
211 }
212 
213 //-/////////////////////////////////////////////////////////////////////////////////////////////////
214 #undef prefix_
215 
216 
217 // Local Variables:
218 // mode: c++
219 // fill-column: 100
220 // comment-column: 40
221 // c-file-style: "senf"
222 // indent-tabs-mode: nil
223 // ispell-local-dictionary: "american"
224 // compile-command: "scons -u test"
225 // End: