[62] | 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" |
---|
[94] | 9 | #include "Common/include/Tabulation.h" |
---|
[62] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | |
---|
| 14 | #undef FUNCTION |
---|
| 15 | #define FUNCTION "Interfaces::test_map" |
---|
[82] | 16 | bool Interfaces::test_map (uint32_t depth, bool top_level, bool is_behavioural) |
---|
[62] | 17 | { |
---|
| 18 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 19 | |
---|
[94] | 20 | std::string tab = morpheo::tab(depth); |
---|
[78] | 21 | |
---|
[62] | 22 | bool _return = true; |
---|
| 23 | |
---|
[88] | 24 | log_printf(INFO,Interface,FUNCTION, "%s* Interfaces \"%s\"",tab.c_str(),_name.c_str()); |
---|
[62] | 25 | |
---|
[75] | 26 | for (std::list<Interface_fifo*>::iterator i = _list_interface->begin(); |
---|
[62] | 27 | i != _list_interface->end(); |
---|
| 28 | ++i) |
---|
[82] | 29 | _return &= (*i)->test_map(depth+1, top_level, is_behavioural); |
---|
[62] | 30 | |
---|
| 31 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
| 32 | |
---|
| 33 | return _return; |
---|
| 34 | }; |
---|
| 35 | |
---|
[82] | 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 | |
---|
[94] | 42 | // std::string tab = tab(depth); |
---|
[82] | 43 | |
---|
| 44 | // bool _return = true; |
---|
| 45 | |
---|
[88] | 46 | // log_printf(INFO,Behavioural,FUNCTION, "%s* Interfaces \"%s\"",tab.c_str(),_name.c_str()); |
---|
[82] | 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 | |
---|
[62] | 58 | }; // end namespace behavioural |
---|
| 59 | }; // end namespace morpheo |
---|