diff options
-rw-r--r-- | src/systemc/ext/core/sc_event.hh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/systemc/ext/core/sc_event.hh b/src/systemc/ext/core/sc_event.hh index 8eb1283c1..0b901ff1e 100644 --- a/src/systemc/ext/core/sc_event.hh +++ b/src/systemc/ext/core/sc_event.hh @@ -40,6 +40,7 @@ namespace sc_core class sc_event; class sc_event_and_expr; class sc_event_or_expr; +class sc_interface; class sc_object; class sc_port_base; @@ -47,6 +48,10 @@ class sc_event_finder { protected: void warn_unimpl(const char *func) const; + + public: + // Should be "implementation defined" but used in the tests. + virtual const sc_event &find_event(sc_interface *if_p=NULL) const = 0; }; template <class IF> @@ -58,6 +63,13 @@ class sc_event_finder_t : public sc_event_finder { warn_unimpl(__PRETTY_FUNCTION__); } + + const sc_event & + find_event(sc_interface *if_p=NULL) const override + { + warn_unimpl(__PRETTY_FUNCTION__); + return *(const sc_event *)nullptr; + } }; class sc_event_and_list |