sc_event.hh (12915:aff42de64e41) sc_event.hh (12924:f74f34bd41ce)
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 26 unchanged lines hidden (view full) ---

35#include "sc_time.hh"
36
37namespace sc_core
38{
39
40class sc_event;
41class sc_event_and_expr;
42class sc_event_or_expr;
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 26 unchanged lines hidden (view full) ---

35#include "sc_time.hh"
36
37namespace sc_core
38{
39
40class sc_event;
41class sc_event_and_expr;
42class sc_event_or_expr;
43class sc_interface;
43class sc_object;
44class sc_port_base;
45
46class sc_event_finder
47{
48 protected:
49 void warn_unimpl(const char *func) const;
44class sc_object;
45class sc_port_base;
46
47class sc_event_finder
48{
49 protected:
50 void warn_unimpl(const char *func) const;
51
52 public:
53 // Should be "implementation defined" but used in the tests.
54 virtual const sc_event &find_event(sc_interface *if_p=NULL) const = 0;
50};
51
52template <class IF>
53class sc_event_finder_t : public sc_event_finder
54{
55 public:
56 sc_event_finder_t(const sc_port_base &,
57 const sc_event & (IF::*event_method)() const)
58 {
59 warn_unimpl(__PRETTY_FUNCTION__);
60 }
55};
56
57template <class IF>
58class sc_event_finder_t : public sc_event_finder
59{
60 public:
61 sc_event_finder_t(const sc_port_base &,
62 const sc_event & (IF::*event_method)() const)
63 {
64 warn_unimpl(__PRETTY_FUNCTION__);
65 }
66
67 const sc_event &
68 find_event(sc_interface *if_p=NULL) const override
69 {
70 warn_unimpl(__PRETTY_FUNCTION__);
71 return *(const sc_event *)nullptr;
72 }
61};
62
63class sc_event_and_list
64{
65 public:
66 sc_event_and_list();
67 sc_event_and_list(const sc_event_and_list &);
68 sc_event_and_list(const sc_event &);

--- 91 unchanged lines hidden ---
73};
74
75class sc_event_and_list
76{
77 public:
78 sc_event_and_list();
79 sc_event_and_list(const sc_event_and_list &);
80 sc_event_and_list(const sc_event &);

--- 91 unchanged lines hidden ---