1 | /* |
---|
2 | * $Id: Interfaces_test_map.cpp 94 2008-12-15 11:04:03Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/include/Interfaces.h" |
---|
9 | #include "Common/include/Tabulation.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | |
---|
14 | #undef FUNCTION |
---|
15 | #define FUNCTION "Interfaces::test_map" |
---|
16 | bool Interfaces::test_map (uint32_t depth, bool top_level, bool is_behavioural) |
---|
17 | { |
---|
18 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
19 | |
---|
20 | std::string tab = morpheo::tab(depth); |
---|
21 | |
---|
22 | bool _return = true; |
---|
23 | |
---|
24 | log_printf(INFO,Interface,FUNCTION, "%s* Interfaces \"%s\"",tab.c_str(),_name.c_str()); |
---|
25 | |
---|
26 | for (std::list<Interface_fifo*>::iterator i = _list_interface->begin(); |
---|
27 | i != _list_interface->end(); |
---|
28 | ++i) |
---|
29 | _return &= (*i)->test_map(depth+1, top_level, is_behavioural); |
---|
30 | |
---|
31 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
32 | |
---|
33 | return _return; |
---|
34 | }; |
---|
35 | |
---|
36 | // #undef FUNCTION |
---|
37 | // #define FUNCTION "Interfaces::test_equi" |
---|
38 | // bool Interfaces::test_equi (uint32_t depth) |
---|
39 | // { |
---|
40 | // log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
41 | |
---|
42 | // std::string tab = tab(depth); |
---|
43 | |
---|
44 | // bool _return = true; |
---|
45 | |
---|
46 | // log_printf(INFO,Behavioural,FUNCTION, "%s* Interfaces \"%s\"",tab.c_str(),_name.c_str()); |
---|
47 | |
---|
48 | // for (std::list<Interface_fifo*>::iterator i = _list_interface->begin(); |
---|
49 | // i != _list_interface->end(); |
---|
50 | // ++i) |
---|
51 | // _return &= (*i)->test_equi(depth+1); |
---|
52 | |
---|
53 | // log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
54 | |
---|
55 | // return _return; |
---|
56 | // }; |
---|
57 | |
---|
58 | }; // end namespace behavioural |
---|
59 | }; // end namespace morpheo |
---|