Changeset 74 for trunk/IPs/systemC/processor/Morpheo/Behavioural/src
- Timestamp:
- Jan 30, 2008, 5:24:14 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/src
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Stat.cpp
r71 r74 16 16 _list_operand = new std::map<std::string, var_t>; 17 17 _list_expr = new std::list<expr_t>; 18 _list_stat = new std::list<Stat *>; 18 19 19 20 _cycle = create_variable("cycle"); 20 21 *_cycle = 0; // for the first period 22 23 _generate_file = true; 21 24 } 22 25 … … 33 36 _list_operand = new std::map<std::string, var_t>; 34 37 _list_expr = new std::list<expr_t>; 38 _list_stat = new std::list<Stat *>; 35 39 36 40 _cycle = create_variable("cycle"); 37 41 *_cycle = 0; // for the first period 42 43 _generate_file = true; 38 44 } 39 45 40 46 Stat::~Stat (void) 41 47 { 42 generate_file(); 48 if (_generate_file) 49 generate_file(); 43 50 44 51 // parcourir la liste et desallouer les counters … … 59 66 } 60 67 delete _list_expr; 68 delete _list_stat; 61 69 } 62 70 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Stat_print.cpp
r71 r74 16 16 xml.attribut("name",_name_instance); 17 17 xml.balise_open_end(); 18 19 // Print component 20 for (std::list<Stat *>::iterator stat=_list_stat->begin(); 21 stat != _list_stat->end(); 22 stat ++) 23 xml.text((*stat)->print(depth+1)); 24 18 25 19 26 // Test special case
Note: See TracChangeset
for help on using the changeset viewer.