Packets: Add StringParser ostream operation
[senf.git] / PPI / Jack.cti
1 // $Id$
2 //
3 // Copyright (C) 2009 
4 // Fraunhofer Institute for Open Communication Systems (FOKUS)
5 // Competence Center NETwork research (NET), St. Augustin, GERMANY
6 //     Stefan Bund <g0dil@berlios.de>
7 //
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.
12 //
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.
17 //
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.
22
23 /** \file
24     \brief Jack inline template implementation */
25
26 //#include "Jack.ih"
27
28 // Custom includes
29 #include "Setup.hh"
30
31 #define prefix_ inline
32 ///////////////////////////////cti.p///////////////////////////////////////
33
34 template <class PacketType>
35 prefix_ senf::ppi::connector::ActiveInputJack<PacketType>::
36 ActiveInputJack(ActiveInput<PacketType> & input)
37     : GenericActiveInputJack (input)
38 {}
39
40 template <class PacketType>
41 prefix_
42 senf::ppi::connector::ActiveInputJack<PacketType>::ActiveInputJack(ActiveInput<> & input)
43     : GenericActiveInputJack (input)
44 {}
45
46 template <class PacketType>
47 prefix_
48 senf::ppi::connector::ActiveInputJack<PacketType>::ActiveInputJack(ActiveInputJack & input)
49     : GenericActiveInputJack (input.connector())
50 {}
51
52 template <class PacketType>
53 prefix_
54 senf::ppi::connector::ActiveInputJack<PacketType>::ActiveInputJack(ActiveInputJack<> & input)
55     : GenericActiveInputJack (input.connector())
56 {}
57
58 template <class PacketType>
59 prefix_ senf::ppi::connector::ActiveOutputJack<PacketType>::
60 ActiveOutputJack(ActiveOutput<PacketType> & output)
61     : GenericActiveOutputJack (output)
62 {}
63
64 template <class PacketType>
65 prefix_
66 senf::ppi::connector::ActiveOutputJack<PacketType>::ActiveOutputJack(ActiveOutput<> & output)
67     : GenericActiveOutputJack (output)
68 {}
69
70 template <class PacketType>
71 prefix_ senf::ppi::connector::ActiveOutputJack<PacketType>::
72 ActiveOutputJack(ActiveOutputJack & output)
73     : GenericActiveOutputJack (output.connector())
74 {}
75
76 template <class PacketType>
77 prefix_ senf::ppi::connector::ActiveOutputJack<PacketType>::
78 ActiveOutputJack(ActiveOutputJack<> & output)
79     : GenericActiveOutputJack (output.connector())
80 {}
81
82 template <class PacketType>
83 prefix_ senf::ppi::connector::PassiveInputJack<PacketType>::
84 PassiveInputJack(PassiveInput<PacketType> & input)
85     : GenericPassiveInputJack (input)
86 {}
87
88 template <class PacketType>
89 prefix_
90 senf::ppi::connector::PassiveInputJack<PacketType>::PassiveInputJack(PassiveInput<> & input)
91     : GenericPassiveInputJack (input)
92 {}
93
94 template <class PacketType>
95 prefix_
96 senf::ppi::connector::PassiveInputJack<PacketType>::PassiveInputJack(PassiveInputJack & input)
97     : GenericPassiveInputJack (input.connector())
98 {}
99
100 template <class PacketType>
101 prefix_ senf::ppi::connector::PassiveInputJack<PacketType>::
102 PassiveInputJack(PassiveInputJack<> & input)
103     : GenericPassiveInputJack (input.connector())
104 {}
105
106 template <class PacketType>
107 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
108 PassiveOutputJack(PassiveOutput<PacketType> & output)
109     : GenericPassiveOutputJack (output)
110 {}
111
112 template <class PacketType>
113 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
114 PassiveOutputJack(PassiveOutput<> & output)
115     : GenericPassiveOutputJack (output)
116 {}
117
118 template <class PacketType>
119 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
120 PassiveOutputJack(PassiveOutputJack & output)
121     : GenericPassiveOutputJack (output.connector())
122 {}
123
124 template <class PacketType>
125 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
126 PassiveOutputJack(PassiveOutputJack<> & output)
127     : GenericPassiveOutputJack (output.connector())
128 {}
129
130 template <class T>
131 prefix_ void
132 senf::ppi::connect(connector::GenericActiveOutputJack & source, T & target,
133                    typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
134 {
135     connect(source.connector(), target);
136 }
137
138 template <class T>
139 prefix_ void
140 senf::ppi::connect(connector::GenericPassiveOutputJack & source, T & target,
141                    typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
142 {
143     connect(source.connector(), target);
144 }
145
146 template <class T>
147 prefix_ void
148 senf::ppi::connect(T & source, connector::GenericActiveInputJack & target,
149                    typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
150 {
151     connect(source, target.connector());
152 }
153
154 template <class T>
155 prefix_ void
156 senf::ppi::connect(T & source, connector::GenericPassiveInputJack & target,
157                    typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
158 {
159     connect(source, target.connector());
160 }
161
162 ///////////////////////////////cti.e///////////////////////////////////////
163 #undef prefix_
164
165 \f
166 // Local Variables:
167 // mode: c++
168 // fill-column: 100
169 // comment-column: 40
170 // c-file-style: "senf"
171 // indent-tabs-mode: nil
172 // ispell-local-dictionary: "american"
173 // compile-command: "scons -u test"
174 // End: