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 non-inline template implementation */
31 ///////////////////////////////ct.p////////////////////////////////////////
33 ///////////////////////////////////////////////////////////////////////////
34 // senf::ppi::detail::ForwardingRouteImplementation<Source,Target>
36 ////////////////////////////////////////
39 template <class Source, class Target>
40 prefix_ void senf::ppi::detail::ForwardingRouteImplementation<Source,Target>::v_notifyThrottle()
42 if (this->autoThrottling()) {
43 notifyThrottle(this->source(),boost::mpl::bool_<RoutingTraits<Source>::notifyTarget>());
44 notifyThrottle(this->target(),boost::mpl::bool_<RoutingTraits<Target>::notifyTarget>());
48 template <class Source, class Target>
50 senf::ppi::detail::ForwardingRouteImplementation<Source,Target>::v_notifyUnthrottle()
52 if (this->autoThrottling()) {
53 notifyUnthrottle(this->source(),boost::mpl::bool_<RoutingTraits<Source>::notifyTarget>());
54 notifyUnthrottle(this->target(),boost::mpl::bool_<RoutingTraits<Target>::notifyTarget>());
58 template <class Source, class Target>
59 prefix_ bool senf::ppi::detail::ForwardingRouteImplementation<Source,Target>::v_throttled()
62 return this->autoThrottling() && (
63 throttled(this->source(),boost::mpl::bool_<RoutingTraits<Source>::notifySource>()) ||
64 throttled(this->target(),boost::mpl::bool_<RoutingTraits<Target>::notifySource>()) );
67 ///////////////////////////////ct.e////////////////////////////////////////
75 // c-file-style: "senf"
76 // indent-tabs-mode: nil
77 // ispell-local-dictionary: "american"
78 // compile-command: "scons -u test"