4 // Fraunhofer Institute for Open Communication Systems (FOKUS)
5 // Competence Center NETwork research (NET), St. Augustin, GERMANY
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 MultiConnectorMixin inline template implementation */
26 #include "MultiConnectorMixin.ih"
30 #define prefix_ inline
31 ///////////////////////////////cti.p///////////////////////////////////////
33 ///////////////////////////////////////////////////////////////////////////
34 // senf::ppi::module::detail::MultiConnectorWrapper<Module,Connector>
36 template <class Module, class Connector>
37 prefix_ void senf::ppi::module::detail::MultiConnectorWrapper<Module, Connector>::v_disconnected()
40 static_cast<Module&>(this->module()).disconnected(*this);
43 ///////////////////////////////////////////////////////////////////////////
44 // senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,KeyType_,ContainerType_>
46 template <class Self_, class ConnectorType_, class KeyType_, class ContainerType_>
47 prefix_ ContainerType_ &
48 senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,KeyType_,ContainerType_>::connectors()
53 template <class Self_, class ConnectorType_, class KeyType_, class ContainerType_>
54 prefix_ ContainerType_ const &
55 senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,KeyType_,ContainerType_>::
62 template <class Self_, class ConnectorType_, class KeyType_, class ContainerType_>
64 senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,KeyType_,ContainerType_>::
65 connectorDestroy(ConnectorType const &)
68 ///////////////////////////////////////////////////////////////////////////
69 // senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,void,ContainerType_>
71 template <class Self_, class ConnectorType_, class ContainerType_>
72 prefix_ ContainerType_ &
73 senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,void,ContainerType_>::connectors()
78 template <class Self_, class ConnectorType_, class ContainerType_>
79 prefix_ ContainerType_ const &
80 senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,void,ContainerType_>::connectors()
86 template <class Self_, class ConnectorType_, class ContainerType_>
88 senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,void,ContainerType_>::
89 connectorDestroy(ConnectorType const &)
92 ///////////////////////////////////////////////////////////////////////////
93 // senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,void,void>
95 template <class Self_, class ConnectorType_>
97 senf::ppi::module::MultiConnectorMixin<Self_,ConnectorType_,void,void>::
98 disconnected(ConnectorType_ const & c)
100 static_cast<Self_*>(this)->connectorDestroy(&c);
103 ////////////////////////////////////////////////////////////////////////
107 // Include 'Implementation' from MultiConnectorMixin.mpp
108 #define BOOST_PP_ITERATION_PARAMS_1 (4, ( \
110 SENF_MULTI_CONNECTOR_MAX_ARGS, \
111 SENF_ABSOLUTE_INCLUDE_PATH(PPI/MultiConnectorMixin.mpp), \
113 #include BOOST_PP_ITERATE()
117 ///////////////////////////////cti.e///////////////////////////////////////
124 // comment-column: 40
125 // c-file-style: "senf"
126 // indent-tabs-mode: nil
127 // ispell-local-dictionary: "american"
128 // compile-command: "scons -u test"