tlm_utils::callback_binder_fw< TYPES > Class Template Reference

#include <multi_socket_bases.h>

Inheritance diagram for tlm_utils::callback_binder_fw< TYPES >:

Inheritance graph
[legend]
Collaboration diagram for tlm_utils::callback_binder_fw< TYPES >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef
TYPES::tlm_payload_type 
transaction_type
typedef
TYPES::tlm_phase_type 
phase_type
typedef
tlm::tlm_sync_enum 
sync_enum_type
typedef
boost::function
< sync_enum_type(int
i, transaction_type
&txn, phase_type &ph,
sc_core::sc_time &t)> 
nb_func_type
typedef
boost::function
< void(int i,
transaction_type
&txn,
sc_core::sc_time &t)> 
b_func_type
typedef
boost::function
< unsigned int(int i,
transaction_type
&txn)> 
debug_func_type
typedef
boost::function
< bool(int i,
transaction_type
&txn, tlm::tlm_dmi
&dmi)> 
dmi_func_type

Public Member Functions

 callback_binder_fw (int id)
sync_enum_type nb_transport_fw (transaction_type &txn, phase_type &p, sc_core::sc_time &t)
void b_transport (transaction_type &trans, sc_core::sc_time &t)
bool get_direct_mem_ptr (transaction_type &trans, tlm::tlm_dmi &dmi_data)
unsigned int transport_dbg (transaction_type &trans)
void register_port (sc_core::sc_port_base &b, const char *name)
void set_callbacks (nb_func_type &cb1, b_func_type &cb2, dmi_func_type &cb3, debug_func_type &cb4)
sc_core::sc_port_base * get_other_side ()

Private Attributes

int m_id
nb_func_typem_nb_f
b_func_typem_b_f
debug_func_typem_dbg_f
dmi_func_typem_dmi_f
sc_core::sc_port_base * m_caller_port


Detailed Description

template<typename TYPES>
class tlm_utils::callback_binder_fw< TYPES >

Definition at line 44 of file multi_socket_bases.h.


Member Typedef Documentation

template<typename TYPES>
typedef TYPES::tlm_payload_type tlm_utils::callback_binder_fw< TYPES >::transaction_type

Definition at line 47 of file multi_socket_bases.h.

template<typename TYPES>
typedef TYPES::tlm_phase_type tlm_utils::callback_binder_fw< TYPES >::phase_type

Definition at line 48 of file multi_socket_bases.h.

template<typename TYPES>
typedef tlm::tlm_sync_enum tlm_utils::callback_binder_fw< TYPES >::sync_enum_type

Definition at line 49 of file multi_socket_bases.h.

template<typename TYPES>
typedef boost::function<sync_enum_type (int i, transaction_type& txn, phase_type& ph, sc_core::sc_time& t)> tlm_utils::callback_binder_fw< TYPES >::nb_func_type

Definition at line 52 of file multi_socket_bases.h.

template<typename TYPES>
typedef boost::function<void (int i, transaction_type& txn, sc_core::sc_time& t)> tlm_utils::callback_binder_fw< TYPES >::b_func_type

Definition at line 53 of file multi_socket_bases.h.

template<typename TYPES>
typedef boost::function<unsigned int (int i, transaction_type& txn)> tlm_utils::callback_binder_fw< TYPES >::debug_func_type

Definition at line 54 of file multi_socket_bases.h.

template<typename TYPES>
typedef boost::function<bool (int i, transaction_type& txn, tlm::tlm_dmi& dmi)> tlm_utils::callback_binder_fw< TYPES >::dmi_func_type

Definition at line 55 of file multi_socket_bases.h.


Constructor & Destructor Documentation

template<typename TYPES>
tlm_utils::callback_binder_fw< TYPES >::callback_binder_fw ( int  id  )  [inline]

Definition at line 58 of file multi_socket_bases.h.


Member Function Documentation

template<typename TYPES>
sync_enum_type tlm_utils::callback_binder_fw< TYPES >::nb_transport_fw ( transaction_type txn,
phase_type p,
sc_core::sc_time &  t 
) [inline, virtual]

Implements tlm::tlm_fw_nonblocking_transport_if< TYPES::tlm_payload_type, TYPES::tlm_phase_type >.

Definition at line 62 of file multi_socket_bases.h.

References tlm_utils::callback_binder_fw< TYPES >::m_id, and tlm_utils::callback_binder_fw< TYPES >::m_nb_f.

template<typename TYPES>
void tlm_utils::callback_binder_fw< TYPES >::b_transport ( transaction_type trans,
sc_core::sc_time &  t 
) [inline, virtual]

Implements tlm::tlm_blocking_transport_if< TYPES::tlm_payload_type >.

Definition at line 75 of file multi_socket_bases.h.

References tlm_utils::callback_binder_fw< TYPES >::m_b_f, and tlm_utils::callback_binder_fw< TYPES >::m_id.

template<typename TYPES>
bool tlm_utils::callback_binder_fw< TYPES >::get_direct_mem_ptr ( transaction_type trans,
tlm::tlm_dmi dmi_data 
) [inline, virtual]

Implements tlm::tlm_fw_direct_mem_if< TYPES::tlm_payload_type >.

Definition at line 86 of file multi_socket_bases.h.

References tlm_utils::callback_binder_fw< TYPES >::m_dmi_f, and tlm_utils::callback_binder_fw< TYPES >::m_id.

template<typename TYPES>
unsigned int tlm_utils::callback_binder_fw< TYPES >::transport_dbg ( transaction_type trans  )  [inline, virtual]

Implements tlm::tlm_transport_dbg_if< TYPES::tlm_payload_type >.

Definition at line 97 of file multi_socket_bases.h.

References tlm_utils::callback_binder_fw< TYPES >::m_dbg_f, and tlm_utils::callback_binder_fw< TYPES >::m_id.

template<typename TYPES>
void tlm_utils::callback_binder_fw< TYPES >::register_port ( sc_core::sc_port_base &  b,
const char *  name 
) [inline]

Definition at line 110 of file multi_socket_bases.h.

References tlm_utils::callback_binder_fw< TYPES >::m_caller_port.

template<typename TYPES>
void tlm_utils::callback_binder_fw< TYPES >::set_callbacks ( nb_func_type cb1,
b_func_type cb2,
dmi_func_type cb3,
debug_func_type cb4 
) [inline]

Definition at line 115 of file multi_socket_bases.h.

References tlm_utils::callback_binder_fw< TYPES >::m_b_f, tlm_utils::callback_binder_fw< TYPES >::m_dbg_f, tlm_utils::callback_binder_fw< TYPES >::m_dmi_f, and tlm_utils::callback_binder_fw< TYPES >::m_nb_f.

template<typename TYPES>
sc_core::sc_port_base* tlm_utils::callback_binder_fw< TYPES >::get_other_side (  )  [inline]

Definition at line 125 of file multi_socket_bases.h.

References tlm_utils::callback_binder_fw< TYPES >::m_caller_port.


Member Data Documentation

template<typename TYPES>
int tlm_utils::callback_binder_fw< TYPES >::m_id [private]

Definition at line 129 of file multi_socket_bases.h.

Referenced by tlm_utils::callback_binder_fw< TYPES >::b_transport(), tlm_utils::callback_binder_fw< TYPES >::get_direct_mem_ptr(), tlm_utils::callback_binder_fw< TYPES >::nb_transport_fw(), and tlm_utils::callback_binder_fw< TYPES >::transport_dbg().

template<typename TYPES>
nb_func_type* tlm_utils::callback_binder_fw< TYPES >::m_nb_f [private]

Definition at line 132 of file multi_socket_bases.h.

Referenced by tlm_utils::callback_binder_fw< TYPES >::nb_transport_fw(), and tlm_utils::callback_binder_fw< TYPES >::set_callbacks().

template<typename TYPES>
b_func_type* tlm_utils::callback_binder_fw< TYPES >::m_b_f [private]

Definition at line 133 of file multi_socket_bases.h.

Referenced by tlm_utils::callback_binder_fw< TYPES >::b_transport(), and tlm_utils::callback_binder_fw< TYPES >::set_callbacks().

template<typename TYPES>
debug_func_type* tlm_utils::callback_binder_fw< TYPES >::m_dbg_f [private]

Definition at line 134 of file multi_socket_bases.h.

Referenced by tlm_utils::callback_binder_fw< TYPES >::set_callbacks(), and tlm_utils::callback_binder_fw< TYPES >::transport_dbg().

template<typename TYPES>
dmi_func_type* tlm_utils::callback_binder_fw< TYPES >::m_dmi_f [private]

Definition at line 135 of file multi_socket_bases.h.

Referenced by tlm_utils::callback_binder_fw< TYPES >::get_direct_mem_ptr(), and tlm_utils::callback_binder_fw< TYPES >::set_callbacks().

template<typename TYPES>
sc_core::sc_port_base* tlm_utils::callback_binder_fw< TYPES >::m_caller_port [private]

Definition at line 138 of file multi_socket_bases.h.

Referenced by tlm_utils::callback_binder_fw< TYPES >::get_other_side(), and tlm_utils::callback_binder_fw< TYPES >::register_port().


The documentation for this class was generated from the following file:
Generated on Thu Jun 5 17:44:20 2008 for TLM 2 by  doxygen 1.5.3