Line | |
---|
1 | /*------------------------------------------------------------\ |
---|
2 | | | |
---|
3 | | Tool : systemcass | |
---|
4 | | | |
---|
5 | | File : sc_event.h | |
---|
6 | | | |
---|
7 | | Author : Buchmann Richard | |
---|
8 | | | |
---|
9 | | Date : 09_07_2004 | |
---|
10 | | | |
---|
11 | \------------------------------------------------------------*/ |
---|
12 | #ifndef __SC_EVENT_H__ |
---|
13 | #define __SC_EVENT_H__ |
---|
14 | |
---|
15 | #include "sc_fwd.h" |
---|
16 | |
---|
17 | namespace sc_core { |
---|
18 | |
---|
19 | class sc_event { |
---|
20 | public : typedef enum { POS, NEG, VAL } flag_t; |
---|
21 | private: |
---|
22 | const sc_interface &interface; |
---|
23 | flag_t flag; |
---|
24 | public: |
---|
25 | bool pos () const; |
---|
26 | sc_event (const sc_interface &, flag_t); |
---|
27 | ~sc_event (); |
---|
28 | |
---|
29 | // methods |
---|
30 | const sc_interface& get_interface() const { return interface;}; // CASC specific |
---|
31 | flag_t get_flag () const { return flag;}; // CASC specific |
---|
32 | |
---|
33 | // operators |
---|
34 | |
---|
35 | friend std::ostream& operator << (std::ostream &, const sc_event &); |
---|
36 | |
---|
37 | sc_event (); |
---|
38 | /* |
---|
39 | // LRM |
---|
40 | sc_event (); |
---|
41 | private: |
---|
42 | // disabled |
---|
43 | sc_event (const sc_event &); |
---|
44 | sc_event& operator = (const sc_event&); |
---|
45 | */ |
---|
46 | }; |
---|
47 | |
---|
48 | } // end of sc_core namespace |
---|
49 | |
---|
50 | #endif /* __SC_EVENT_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.