4 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
5 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
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 Route inline template implementation */
30 #define prefix_ inline
31 ///////////////////////////////cti.p///////////////////////////////////////
33 ///////////////////////////////////////////////////////////////////////////
34 // senf::ppi::Route<Source,Target>
36 ////////////////////////////////////////
39 template <class Source, class Target>
40 prefix_ senf::ppi::Route<Source,Target>::Route(module::Module & module, Source & source,
42 : Implementation(module, source, target)
45 ///////////////////////////////////////////////////////////////////////////
46 // senf::ppi::detail::RouteImplementation<Source,Target,srcEvent,trgEvent>
48 ////////////////////////////////////////
51 template <bool srcEvent, bool trgEvent>
52 prefix_ senf::ppi::detail::RouteImplementation<srcEvent,trgEvent>::
53 RouteImplementation(module::Module & module, connector::InputConnector & source,
54 connector::OutputConnector & target)
55 : RouteBase(module), source_(&source), target_(&target)
58 ///////////////////////////////////////////////////////////////////////////
59 // senf::ppi::detail::RouteImplementation<true,false>
61 ////////////////////////////////////////
64 prefix_ senf::ppi::detail::RouteImplementation<true,false>::
65 RouteImplementation(module::Module & module, EventDescriptor & source,
66 connector::OutputConnector & target)
67 : RouteBase(module), source_(&source), target_(&target)
70 ///////////////////////////////////////////////////////////////////////////
71 // senf::ppi::detail::RouteImplementation<false,true>
73 ////////////////////////////////////////
76 prefix_ senf::ppi::detail::RouteImplementation<false,true>::
77 RouteImplementation(module::Module & module, connector::InputConnector & source,
78 EventDescriptor & target)
79 : RouteBase(module), source_(&source), target_(&target)
82 ///////////////////////////////cti.e///////////////////////////////////////
90 // c-file-style: "senf"
91 // indent-tabs-mode: nil
92 // ispell-local-dictionary: "american"
93 // compile-command: "scons -u test"