34 #ifndef SC_EVENT_FINDER 35 #define SC_EVENT_FINDER 68 void report_error(
const char*
id,
const char* add_msg = 0 )
const;
98 const sc_event& (IF::*event_method_) ()
const )
111 const sc_event& (IF::*m_event_method) ()
const;
129 const IF* iface = ( if_p ) ? dynamic_cast<const IF*>( if_p ) :
130 dynamic_cast<const IF*
>( port().get_interface() );
132 report_error( SC_ID_FIND_EVENT_,
"port is not bound" );
135 return (const_cast<IF*>( iface )->*m_event_method) ();
Interface specific event finder class.
Base classes of all port classes.
Abstract base class for class sc_port_b.
static const sc_event none
Abstract base class of all interface classes.
virtual const sc_event & find_event(sc_interface *if_p=0) const
const sc_port_base & port() const
sc_event_finder_t(const sc_port_base &port_, const sc_event &(IF::*event_method_)() const)
virtual ~sc_event_finder_t()