source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces.cpp @ 41

Last change on this file since 41 was 41, checked in by rosiere, 17 years ago

Vhdl_Testbench : Modification du testbench. Maintenant complétement encapsuler dans la classe "Interfaces".
Suppression de la class Vhdl_Testbench dans un avenir proche :D
Suppression du répertoire Configuration.old

File size: 1.2 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Interfaces.h"
9
10namespace morpheo              {
11namespace behavioural          {
12
13  Interfaces::Interfaces  (string name):
14    _name (name)
15  {
16    log_printf(FUNC,Behavioural,"Interfaces","Begin");
17    _list_interface = new list<Interface_fifo*>;
18    log_printf(FUNC,Behavioural,"Interfaces","End");
19  };
20
21  Interfaces::Interfaces  (const Interfaces & interfaces) :
22    _name (interfaces._name)
23  {
24    log_printf(FUNC,Behavioural,"Interfaces (copy)","Begin");
25    _list_interface = interfaces._list_interface;
26    log_printf(FUNC,Behavioural,"Interfaces (copy)","End");
27  };
28 
29  Interfaces::~Interfaces ()
30  {
31    log_printf(FUNC,Behavioural,"~Interfaces","Begin");
32
33#ifdef VHDL_TESTBENCH
34    testbench_generate_file ();
35#endif
36
37    if (_list_interface->empty()== false)
38      {
39        list<Interface_fifo*>::iterator i     = _list_interface->begin();
40
41        while (i != _list_interface->end())
42          {
43            delete (*i);
44            ++i;
45          }
46      }
47
48    delete _list_interface;
49    log_printf(FUNC,Behavioural,"~Interfaces","End");
50  };
51 
52}; // end namespace behavioural         
53}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.