28 #ifndef SC_EVENT_FINDER
29 #define SC_EVENT_FINDER
62 void report_error(
const char*
id,
const char* add_msg = 0 )
const;
92 const sc_event& (IF::*event_method_) ()
const )
105 const sc_event& (IF::*m_event_method) ()
const;
123 const IF* iface = ( if_p ) ? DCAST<const IF*>( if_p ) :
124 DCAST<const IF*>( port().get_interface() );
126 report_error( SC_ID_FIND_EVENT_,
"port is not bound" );
128 return (CCAST<IF*>( iface )->*m_event_method) ();
sc_event_finder_t(const sc_port_base &port_, const sc_event &(IF::*event_method_)() const )
virtual const sc_event & find_event(sc_interface *if_p=0) const
Interface specific event finder class.
Abstract base class of all interface classes.
Abstract base class for class sc_port_b.
const sc_port_base & port() const
virtual ~sc_event_finder()
void report_error(const char *id, const char *add_msg=0) const
virtual const sc_event & find_event(sc_interface *if_p=0) const =0
virtual ~sc_event_finder_t()