18 #ifndef __TLM_EVENT_FINDER_H__
19 #define __TLM_EVENT_FINDER_H__
27 template <
class IF ,
class T>
44 #if !(defined SYSTEMC_VERSION & SYSTEMC_VERSION <= 20050714)
63 #if !(defined SYSTEMC_VERSION & SYSTEMC_VERSION <= 20050714)
64 template <
class IF ,
class T>
69 const IF* iface = ( if_p ) ? dynamic_cast<const IF*>( if_p ) :
70 dynamic_cast<const IF*
>( port().get_interface() );
72 report_error( sc_core::SC_ID_FIND_EVENT_,
"port is not bound" );
74 return (const_cast<IF*>( iface )->*m_event_method) ( 0 );
77 template <
class IF ,
class T>
82 const IF* iface =
dynamic_cast<const IF*
>( port().get_interface() );
84 report_error( sc_core::SC_ID_FIND_EVENT_,
"port is not bound" );
86 return (const_cast<IF*>( iface )->*m_event_method) ( 0 );
virtual ~tlm_event_finder_t()
sc_event_finder(const sc_port_base &)
tlm_event_finder_t(const sc_core::sc_port_base &port_, const sc_core::sc_event &(IF::*event_method_)(tlm_tag< T > *) const )
virtual const sc_core::sc_event & find_event(sc_core::sc_interface *if_p=0) const