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