initiator_socket.hh (13521:74fa3ac44057) initiator_socket.hh (13523:de27641700bb)
1/*****************************************************************************
2
3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
4 more contributor license agreements. See the NOTICE file distributed
5 with this work for additional information regarding copyright ownership.
6 Accellera licenses this file to you under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with the
8 License. You may obtain a copy of the License at

--- 6 unchanged lines hidden (view full) ---

15 implied. See the License for the specific language governing
16 permissions and limitations under the License.
17
18 *****************************************************************************/
19
20#ifndef __SYSTEMC_EXT_TLM_CORE_2_SOCKETS_INITIATOR_SOCKET_HH__
21#define __SYSTEMC_EXT_TLM_CORE_2_SOCKETS_INITIATOR_SOCKET_HH__
22
1/*****************************************************************************
2
3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
4 more contributor license agreements. See the NOTICE file distributed
5 with this work for additional information regarding copyright ownership.
6 Accellera licenses this file to you under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with the
8 License. You may obtain a copy of the License at

--- 6 unchanged lines hidden (view full) ---

15 implied. See the License for the specific language governing
16 permissions and limitations under the License.
17
18 *****************************************************************************/
19
20#ifndef __SYSTEMC_EXT_TLM_CORE_2_SOCKETS_INITIATOR_SOCKET_HH__
21#define __SYSTEMC_EXT_TLM_CORE_2_SOCKETS_INITIATOR_SOCKET_HH__
22
23#include <typeindex>
24
23#include "tlm_core/2/interfaces/fw_bw_ifs.hh"
24#include "tlm_core/2/sockets/base_socket_if.hh"
25
26namespace tlm
27{
28
29template <unsigned int BUSWIDTH=32,
30 typename FW_IF=tlm_fw_transport_if<>,

--- 156 unchanged lines hidden (view full) ---

187
188 explicit tlm_initiator_socket(const char *name) :
189 tlm_base_initiator_socket<BUSWIDTH, tlm_fw_transport_if<TYPES>,
190 tlm_bw_transport_if<TYPES>, N, POL>(name)
191 {}
192
193 virtual const char *kind() const { return "tlm_initiator_socket"; }
194
25#include "tlm_core/2/interfaces/fw_bw_ifs.hh"
26#include "tlm_core/2/sockets/base_socket_if.hh"
27
28namespace tlm
29{
30
31template <unsigned int BUSWIDTH=32,
32 typename FW_IF=tlm_fw_transport_if<>,

--- 156 unchanged lines hidden (view full) ---

189
190 explicit tlm_initiator_socket(const char *name) :
191 tlm_base_initiator_socket<BUSWIDTH, tlm_fw_transport_if<TYPES>,
192 tlm_bw_transport_if<TYPES>, N, POL>(name)
193 {}
194
195 virtual const char *kind() const { return "tlm_initiator_socket"; }
196
195 virtual sc_core::sc_type_index
197 virtual std::type_index
196 get_protocol_types() const
197 {
198 return typeid(TYPES);
199 }
200};
201
202} // namespace tlm
203
204#endif /* __SYSTEMC_EXT_TLM_CORE_2_SOCKETS_INITIATOR_SOCKET_HH__ */
198 get_protocol_types() const
199 {
200 return typeid(TYPES);
201 }
202};
203
204} // namespace tlm
205
206#endif /* __SYSTEMC_EXT_TLM_CORE_2_SOCKETS_INITIATOR_SOCKET_HH__ */