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 inline non-template implementation */
18 #include "Connectors.hh"
21 #define prefix_ inline
22 //-/////////////////////////////////////////////////////////////////////////////////////////////////
24 //-/////////////////////////////////////////////////////////////////////////////////////////////////
25 // senf::ppi::RouteBase
27 prefix_ senf::ppi::RouteBase::~RouteBase()
30 prefix_ bool senf::ppi::RouteBase::hasConnector(connector::Connector const & conn)
33 return v_hasConnector(conn);
36 prefix_ bool senf::ppi::RouteBase::hasEvent(EventDescriptor const & event)
39 return v_hasEvent(event);
42 //-/////////////////////////////////////////////////////////////////////////////////////////////////
45 prefix_ senf::ppi::RouteBase::RouteBase()
48 //-/////////////////////////////////////////////////////////////////////////////////////////////////
49 // senf::ppi::ForwardingRoute
51 prefix_ bool senf::ppi::ForwardingRoute::autoThrottling()
54 return autoThrottling_;
57 prefix_ void senf::ppi::ForwardingRoute::autoThrottling(bool state)
59 autoThrottling_ = state;
62 prefix_ bool senf::ppi::ForwardingRoute::throttled()
68 //-/////////////////////////////////////////////////////////////////////////////////////////////////
71 prefix_ senf::ppi::ForwardingRoute::ForwardingRoute()
72 : autoThrottling_(true)
75 //-/////////////////////////////////////////////////////////////////////////////////////////////////
78 prefix_ void senf::ppi::ForwardingRoute::notifyThrottle()
83 prefix_ void senf::ppi::ForwardingRoute::notifyUnthrottle()
88 //-/////////////////////////////////////////////////////////////////////////////////////////////////
96 // c-file-style: "senf"
97 // indent-tabs-mode: nil
98 // ispell-local-dictionary: "american"
99 // compile-command: "scons -u test"