Last change
on this file since 61 was
57,
checked in by rosiere, 17 years ago
|
- VHDL - RegisterFile_Multi_Banked (only partial_crossbar)
- SystemC - modif Component, interface and co -> ajout du type Tusage_T pour instancier un coposant mais ne demander que le VHDL ou le systemC.
- Séminaire interne
|
File size:
857 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 | log_printf(FUNC,Behavioural,"Component::find_entity", "Begin"); |
---|
16 | |
---|
17 | Entity * _return = NULL; |
---|
18 | |
---|
19 | if (_entity->get_name() == name) |
---|
20 | _return = _entity; |
---|
21 | else |
---|
22 | if (_list_component->empty()== false) |
---|
23 | { |
---|
24 | list<Tcomponent_t *>::iterator i = _list_component->begin(); |
---|
25 | |
---|
26 | while (i != _list_component->end()) |
---|
27 | { |
---|
28 | Entity * entity = (*i)->_entity; |
---|
29 | |
---|
30 | if (entity->get_name() == name) |
---|
31 | { |
---|
32 | _return = entity; |
---|
33 | break; |
---|
34 | } |
---|
35 | ++i; |
---|
36 | } |
---|
37 | } |
---|
38 | |
---|
39 | log_printf(FUNC,Behavioural,"Component::find_entity", "End"); |
---|
40 | |
---|
41 | return _return; |
---|
42 | }; |
---|
43 | |
---|
44 | }; // end namespace behavioural |
---|
45 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.