- Timestamp:
- May 31, 2007, 11:22:29 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface.cpp
r31 r38 18 18 _localisation (localisation) 19 19 { 20 _list_signal = new list<Signal>; 20 log_printf(FUNC,Behavioural,"Interface","Begin"); 21 22 _comment = ""; 23 _list_signal = new (list<Signal*>); 24 21 25 #ifdef POSITION 22 _is_map = false; 26 _is_map = false; 27 _entity_map = NULL; 28 _interface_map = NULL; 23 29 #endif 30 31 log_printf(FUNC,Behavioural,"Interface","End"); 24 32 }; 25 33 … … 29 37 _localisation (interface._localisation) 30 38 { 31 _comment = interface._comment ; 32 _list_signal = interface._list_signal; 39 log_printf(FUNC,Behavioural,"Interface (copy)","Begin"); 40 _comment = interface._comment ; 41 _list_signal = interface._list_signal; 33 42 #ifdef POSITION 34 _is_map = interface._is_map ; 43 _is_map = interface._is_map ; 44 _entity_map = interface._entity_map ; 45 _interface_map = interface._interface_map; 35 46 #endif 47 log_printf(FUNC,Behavioural,"Interface (copy)","End"); 36 48 }; 37 49 38 50 Interface::~Interface () 39 51 { 52 log_printf(FUNC,Behavioural,"~Interface","Begin"); 53 54 if (_list_signal->empty()== false) 55 { 56 list<Signal*>::iterator i = _list_signal->begin(); 57 58 while (i != _list_signal->end()) 59 { 60 delete (*i); 61 ++i; 62 } 63 } 64 40 65 delete _list_signal; 66 log_printf(FUNC,Behavioural,"~Interface","End"); 41 67 }; 42 68
Note: See TracChangeset
for help on using the changeset viewer.