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>
59 prefix_ senf::ppi::connector::ActiveOutputJack<PacketType>::
60 ActiveOutputJack(ActiveOutput<PacketType> & output)
61 : GenericActiveOutputJack (output)
64 template <class PacketType>
66 senf::ppi::connector::ActiveOutputJack<PacketType>::ActiveOutputJack(ActiveOutput<> & output)
67 : GenericActiveOutputJack (output)
70 template <class PacketType>
71 prefix_ senf::ppi::connector::ActiveOutputJack<PacketType>::
72 ActiveOutputJack(ActiveOutputJack & output)
73 : GenericActiveOutputJack (output.connector())
76 template <class PacketType>
77 prefix_ senf::ppi::connector::ActiveOutputJack<PacketType>::
78 ActiveOutputJack(ActiveOutputJack<> & output)
79 : GenericActiveOutputJack (output.connector())
82 template <class PacketType>
83 prefix_ senf::ppi::connector::PassiveInputJack<PacketType>::
84 PassiveInputJack(PassiveInput<PacketType> & input)
85 : GenericPassiveInputJack (input)
88 template <class PacketType>
90 senf::ppi::connector::PassiveInputJack<PacketType>::PassiveInputJack(PassiveInput<> & input)
91 : GenericPassiveInputJack (input)
94 template <class PacketType>
96 senf::ppi::connector::PassiveInputJack<PacketType>::PassiveInputJack(PassiveInputJack & input)
97 : GenericPassiveInputJack (input.connector())
100 template <class PacketType>
101 prefix_ senf::ppi::connector::PassiveInputJack<PacketType>::
102 PassiveInputJack(PassiveInputJack<> & input)
103 : GenericPassiveInputJack (input.connector())
106 template <class PacketType>
107 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
108 PassiveOutputJack(PassiveOutput<PacketType> & output)
109 : GenericPassiveOutputJack (output)
112 template <class PacketType>
113 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
114 PassiveOutputJack(PassiveOutput<> & output)
115 : GenericPassiveOutputJack (output)
118 template <class PacketType>
119 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
120 PassiveOutputJack(PassiveOutputJack & output)
121 : GenericPassiveOutputJack (output.connector())
124 template <class PacketType>
125 prefix_ senf::ppi::connector::PassiveOutputJack<PacketType>::
126 PassiveOutputJack(PassiveOutputJack<> & output)
127 : GenericPassiveOutputJack (output.connector())
132 senf::ppi::connect(connector::GenericActiveOutputJack & source, T & target,
133 typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
135 connect(source.connector(), target);
140 senf::ppi::connect(connector::GenericPassiveOutputJack & source, T & target,
141 typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
143 connect(source.connector(), target);
148 senf::ppi::connect(T & source, connector::GenericActiveInputJack & target,
149 typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
151 connect(source, target.connector());
156 senf::ppi::connect(T & source, connector::GenericPassiveInputJack & target,
157 typename boost::disable_if< boost::is_base_of<connector::Jack, T> >::type *)
159 connect(source, target.connector());
162 ///////////////////////////////cti.e///////////////////////////////////////
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"