Changeset 52 for sources/src/sc_event.cc
- Timestamp:
- Jan 22, 2013, 4:23:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/src/sc_event.cc
r27 r52 1 1 /*------------------------------------------------------------\ 2 | |3 | Tool : systemcass |4 | |5 | File : sc_event.cc |6 | |7 | Author : Buchmann Richard |8 | |9 | Date : 09_07_2004 |10 | |11 \------------------------------------------------------------*/2 | | 3 | Tool : systemcass | 4 | | 5 | File : sc_event.cc | 6 | | 7 | Author : Buchmann Richard | 8 | | 9 | Date : 09_07_2004 | 10 | | 11 \------------------------------------------------------------*/ 12 12 13 13 /* … … 36 36 37 37 #include <iostream> 38 38 39 #include "sc_event.h" 39 40 #include "sc_interface.h" 40 41 #include "sc_port_ext.h" 42 41 43 #ifdef HAVE_CONFIG_H 42 44 #include "config.h" … … 52 54 // ---------------------------------------------------------------------------- 53 55 54 ostream& operator << (ostream &o, const sc_event &s) 55 { 56 o << get_name (s.get_interface().get_pointer()) << "."; 57 switch (s.get_flag ()) { 58 case sc_event::VAL: return o << "val()"; 59 case sc_event::NEG: return o << "neg()"; 60 case sc_event::POS: return o << "pos()"; 61 default: 62 cerr << "Internal error : unknown event flag.\n"; 63 exit (13); 64 } 56 ostream & operator << (ostream & o, const sc_event & s) { 57 o << get_name (s.get_interface().get_pointer()) << "."; 58 switch (s.get_flag ()) { 59 case sc_event::VAL: 60 return o << "val()"; 61 case sc_event::NEG: 62 return o << "neg()"; 63 case sc_event::POS: 64 return o << "pos()"; 65 default: 66 cerr << "Internal error : unknown event flag.\n"; 67 exit (13); 68 } 65 69 } 66 70 67 sc_event::sc_event (const sc_interface &inter_, 68 flag_t flag_) 69 : interface (inter_) 70 { 71 flag = flag_; 71 sc_event::sc_event (const sc_interface & inter_, flag_t flag_) : interface (inter_) { 72 flag = flag_; 72 73 } 73 74 74 sc_event::~sc_event () 75 { 76 } 75 sc_event::~sc_event() {} 77 76 78 77 } // end of sc_core namespace 79 78 79 /* 80 # Local Variables: 81 # tab-width: 4; 82 # c-basic-offset: 4; 83 # c-file-offsets:((innamespace . 0)(inline-open . 0)); 84 # indent-tabs-mode: nil; 85 # End: 86 # 87 # vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 88 */ 89
Note: See TracChangeset
for help on using the changeset viewer.