Last change
on this file since 53 was
52,
checked in by meunier, 12 years ago
|
Code formatting in all source files.
|
File size:
1.6 KB
|
Rev | Line | |
---|
[1] | 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 | |
---|
[27] | 15 | #include "sc_fwd.h" |
---|
[52] | 16 | |
---|
[27] | 17 | #include <iostream> |
---|
[1] | 18 | |
---|
| 19 | namespace sc_core { |
---|
| 20 | |
---|
| 21 | class sc_event { |
---|
[52] | 22 | public : |
---|
| 23 | typedef enum { POS, NEG, VAL } flag_t; |
---|
[1] | 24 | |
---|
[52] | 25 | private: |
---|
| 26 | const sc_interface & interface; |
---|
| 27 | flag_t flag; |
---|
[1] | 28 | |
---|
[52] | 29 | public: |
---|
| 30 | bool pos() const; |
---|
| 31 | sc_event(const sc_interface &, flag_t); |
---|
| 32 | ~sc_event(); |
---|
| 33 | |
---|
| 34 | // methods |
---|
| 35 | const sc_interface & get_interface() const { |
---|
| 36 | return interface; |
---|
| 37 | } // CASC specific |
---|
| 38 | flag_t get_flag () const { |
---|
| 39 | return flag; |
---|
| 40 | } // CASC specific |
---|
| 41 | |
---|
| 42 | // operators |
---|
| 43 | |
---|
| 44 | friend std::ostream & operator << (std::ostream &, const sc_event &); |
---|
| 45 | |
---|
| 46 | sc_event (); |
---|
| 47 | |
---|
[1] | 48 | }; |
---|
| 49 | |
---|
| 50 | } // end of sc_core namespace |
---|
| 51 | |
---|
| 52 | #endif /* __SC_EVENT_H__ */ |
---|
[52] | 53 | |
---|
| 54 | /* |
---|
| 55 | # Local Variables: |
---|
| 56 | # tab-width: 4; |
---|
| 57 | # c-basic-offset: 4; |
---|
| 58 | # c-file-offsets:((innamespace . 0)(inline-open . 0)); |
---|
| 59 | # indent-tabs-mode: nil; |
---|
| 60 | # End: |
---|
| 61 | # |
---|
| 62 | # vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
---|
| 63 | */ |
---|
| 64 | |
---|
Note: See
TracBrowser
for help on using the repository browser.