source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_test_map.cpp @ 81

Last change on this file since 81 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 836 bytes
RevLine 
[62]1/*
2 * $Id: Interfaces_test_map.cpp 81 2008-04-15 18:40:01Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Interfaces.h"
9
10
11namespace morpheo              {
12namespace behavioural          {
13
14#undef  FUNCTION
15#define FUNCTION "Interfaces::test_map"
[78]16  bool Interfaces::test_map (uint32_t depth, bool top_level)
[62]17  {
18    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
19
[78]20    std::string tab  = std::string(depth,'\t');
21
[62]22    bool _return = true;
23
[78]24    log_printf(NONE,Behavioural,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)
[78]29      _return &= (*i)->test_map(depth+1, top_level);
[62]30
31    log_printf(FUNC,Behavioural,FUNCTION,"End");
32   
33    return _return;
34  };
35
36}; // end namespace behavioural         
37}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.