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

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

Interface et vhdl_testbench : l'appel aux fonction add_input et add_ouput est maintenant réalisé par la classe Interface (et autre).

2 remarques :

  • tester avec des sous composants (en particulier les sorties d'un est directement relié au sortie d'un autre)
  • Signal_testbench.cpp -> l'optimisé (par exemple pointeur de fonction afin d'éviter le test et le switch)
File size: 1.0 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  (void)
14  {
15    log_printf(FUNC,Behavioural,"Interfaces","Begin");
16    _list_interface = new list<Interface*>;
17    log_printf(FUNC,Behavioural,"Interfaces","End");
18  };
19
20  Interfaces::Interfaces  (const Interfaces & interfaces)
21  {
22    log_printf(FUNC,Behavioural,"Interfaces (copy)","Begin");
23    _list_interface = interfaces._list_interface;
24    log_printf(FUNC,Behavioural,"Interfaces (copy)","End");
25  };
26 
27  Interfaces::~Interfaces ()
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
42    delete _list_interface;
43    log_printf(FUNC,Behavioural,"~Interfaces","End");
44  };
45 
46}; // end namespace behavioural         
47}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.