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
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
15 \brief Route non-inline template implementation */
22 //-/////////////////////////////////////////////////////////////////////////////////////////////////
24 //-/////////////////////////////////////////////////////////////////////////////////////////////////
25 // senf::ppi::detail::ForwardingRouteImplementation<Source,Target>
27 //-/////////////////////////////////////////////////////////////////////////////////////////////////
30 template <class Source, class Target>
31 prefix_ void senf::ppi::detail::ForwardingRouteImplementation<Source,Target>::v_notifyThrottle()
33 if (this->autoThrottling()) {
34 notifyThrottle(this->source(),boost::mpl::bool_<RoutingTraits<Source>::notifyTarget>());
35 notifyThrottle(this->target(),boost::mpl::bool_<RoutingTraits<Target>::notifyTarget>());
39 template <class Source, class Target>
41 senf::ppi::detail::ForwardingRouteImplementation<Source,Target>::v_notifyUnthrottle()
43 if (this->autoThrottling()) {
44 notifyUnthrottle(this->source(),boost::mpl::bool_<RoutingTraits<Source>::notifyTarget>());
45 notifyUnthrottle(this->target(),boost::mpl::bool_<RoutingTraits<Target>::notifyTarget>());
49 template <class Source, class Target>
50 prefix_ bool senf::ppi::detail::ForwardingRouteImplementation<Source,Target>::v_throttled()
53 return this->autoThrottling() && (
54 throttled(this->source(),boost::mpl::bool_<RoutingTraits<Source>::notifySource>()) ||
55 throttled(this->target(),boost::mpl::bool_<RoutingTraits<Target>::notifySource>()) );
58 //-/////////////////////////////////////////////////////////////////////////////////////////////////
66 // c-file-style: "senf"
67 // indent-tabs-mode: nil
68 // ispell-local-dictionary: "american"
69 // compile-command: "scons -u test"