Last change
on this file since 42 was
42,
checked in by rosiere, 17 years ago
|
Modification des classes d'encapsulation des interfaces :
- gère les signaux à écrire dans le vhdl
- les traces pour le testbench
- la génération des vhdl structurelles
-> test sur la Pattern History Table
|
File size:
631 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/include/Component.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | |
---|
13 | Entity * Component::find_entity (string name) |
---|
14 | { |
---|
15 | |
---|
16 | if (_entity->get_name() == name) |
---|
17 | return _entity; |
---|
18 | else |
---|
19 | if (_list_component->empty()== false) |
---|
20 | { |
---|
21 | list<Entity *>::iterator i = _list_component->begin(); |
---|
22 | |
---|
23 | while (i != _list_component->end()) |
---|
24 | { |
---|
25 | if ((*i)->get_name() == name) |
---|
26 | { |
---|
27 | return *i; |
---|
28 | break; |
---|
29 | } |
---|
30 | ++i; |
---|
31 | } |
---|
32 | } |
---|
33 | |
---|
34 | return NULL; |
---|
35 | }; |
---|
36 | |
---|
37 | }; // end namespace behavioural |
---|
38 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.