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

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