- 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/Interfaces.cpp
r31 r38 13 13 Interfaces::Interfaces (void) 14 14 { 15 _list_interface = new list<Interface>; 15 log_printf(FUNC,Behavioural,"Interfaces","Begin"); 16 _list_interface = new list<Interface*>; 17 log_printf(FUNC,Behavioural,"Interfaces","End"); 16 18 }; 17 19 18 20 Interfaces::Interfaces (const Interfaces & interfaces) 19 21 { 22 log_printf(FUNC,Behavioural,"Interfaces (copy)","Begin"); 20 23 _list_interface = interfaces._list_interface; 24 log_printf(FUNC,Behavioural,"Interfaces (copy)","End"); 21 25 }; 22 26 23 27 Interfaces::~Interfaces () 24 28 { 29 log_printf(FUNC,Behavioural,"~Interfaces","Begin"); 30 31 if (_list_interface->empty()== false) 32 { 33 list<Interface*>::iterator i = _list_interface->begin(); 34 35 while (i != _list_interface->end()) 36 { 37 delete (*i); 38 ++i; 39 } 40 } 41 25 42 delete _list_interface; 43 log_printf(FUNC,Behavioural,"~Interfaces","End"); 26 44 }; 27 45
Note: See TracChangeset
for help on using the changeset viewer.