20 #ifndef TLM_CORE_TLM_EVENT_FINDER_H_INCLUDED_ 21 #define TLM_CORE_TLM_EVENT_FINDER_H_INCLUDED_ 27 template <
class IF ,
class T>
60 template <
class IF ,
class T>
65 const IF* iface = ( if_p ) ? dynamic_cast<const IF*>( if_p ) :
68 report_error( sc_core::SC_ID_FIND_EVENT_,
"port is not bound" );
71 return (const_cast<IF*>( iface )->*m_event_method) ( 0 );
76 #endif // TLM_CORE_TLM_EVENT_FINDER_H_INCLUDED_
virtual const sc_core::sc_event & find_event(sc_core::sc_interface *if_p=0) const
static const sc_event none
virtual ~tlm_event_finder_t()
tlm_event_finder_t(const sc_core::sc_port_base &port_, const sc_core::sc_event &(IF::*event_method_)(tlm_tag< T > *) const)
virtual sc_interface * get_interface()=0
const sc_port_base & port() const
sc_event_finder(const sc_port_base &)
void report_error(const char *id, const char *add_msg=0) const