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 MultiConnectorMixin inline template implementation */
17 #include "MultiConnectorMixin.ih"
21 #define prefix_ inline
22 //-/////////////////////////////////////////////////////////////////////////////////////////////////
24 //-/////////////////////////////////////////////////////////////////////////////////////////////////
25 // senf::ppi::module::detail::MultiConnectorWrapper<Module,Connector>
27 template <class Module, class Connector>
28 prefix_ void senf::ppi::module::detail::MultiConnectorWrapper<Module, Connector>::v_disconnected()
30 Connector::v_disconnected();
31 static_cast<Module&>(this->module()).disconnected(*this);
34 //-/////////////////////////////////////////////////////////////////////////////////////////////////
35 // senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,KeyType_,ContainerType_>
37 template <class Self_, class ConnectorType_, class KeyType_, class ContainerType_>
38 prefix_ ContainerType_ &
39 senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,KeyType_,ContainerType_>::connectors()
44 template <class Self_, class ConnectorType_, class KeyType_, class ContainerType_>
45 prefix_ ContainerType_ const &
46 senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,KeyType_,ContainerType_>::
53 template <class Self_, class ConnectorType_, class KeyType_, class ContainerType_>
55 senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,KeyType_,ContainerType_>::
56 connectorDestroy(ConnectorType const &)
59 //-/////////////////////////////////////////////////////////////////////////////////////////////////
60 // senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,void,ContainerType_>
62 template <class Self_, class ConnectorType_, class ContainerType_>
63 prefix_ ContainerType_ &
64 senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,void,ContainerType_>::connectors()
69 template <class Self_, class ConnectorType_, class ContainerType_>
70 prefix_ ContainerType_ const &
71 senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,void,ContainerType_>::connectors()
77 template <class Self_, class ConnectorType_, class ContainerType_>
79 senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,void,ContainerType_>::
80 connectorDestroy(ConnectorType const &)
83 //-/////////////////////////////////////////////////////////////////////////////////////////////////
84 // senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,void,void>
86 template <class Self_, class ConnectorType_>
88 senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,void,void>::
89 disconnected(ConnectorType_ const & c)
91 static_cast<Self_*>(this)->connectorDestroy(&c);
94 //-/////////////////////////////////////////////////////////////////////////////////////////////////
98 // Include 'Implementation' from MultiConnectorMixin.mpp
99 #define BOOST_PP_ITERATION_PARAMS_1 (4, ( \
101 SENF_MULTI_CONNECTOR_MAX_ARGS, \
102 SENF_ABSOLUTE_INCLUDE_PATH(PPI/MultiConnectorMixin.mpp), \
104 #include BOOST_PP_ITERATE()
108 //-/////////////////////////////////////////////////////////////////////////////////////////////////
115 // comment-column: 40
116 // c-file-style: "senf"
117 // indent-tabs-mode: nil
118 // ispell-local-dictionary: "american"
119 // compile-command: "scons -u test"