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