/*
 * $Id: Interface_test_map.cpp 94 2008-12-15 11:04:03Z rosiere $
 *
 * [ Description ]
 * 
 */

#include "Behavioural/include/Interface.h"
#include "Common/include/Tabulation.h"

namespace morpheo              {
namespace behavioural          {

#undef  FUNCTION
#define FUNCTION "Interface::test_map"
  bool Interface::test_map (uint32_t depth, bool top_level, bool is_behavioural)
  {
    log_printf(FUNC,Behavioural,FUNCTION,"Begin");

    std::string tab  = morpheo::tab(depth);
    bool _return = true;

    log_printf(INFO,Interface,FUNCTION, "%s* Interface \"%s\"",tab.c_str(),_name.c_str());
    
    for (std::list<Signal*>::iterator i  = _list_signal->begin();
	 i != _list_signal->end();
	 ++i)
      _return &= (*i)->test_map(depth+1,top_level, is_behavioural);

    log_printf(FUNC,Behavioural,FUNCTION,"End");
    
    return _return;
  };

// #undef  FUNCTION
// #define FUNCTION "Interface::test_equi"
//   bool Interface::test_equi (uint32_t depth)
//   {
//     log_printf(FUNC,Behavioural,FUNCTION,"Begin");

//     std::string tab  = tab(depth);
//     bool _return = true;

//     log_printf(INFO,Behavioural,FUNCTION, "%s* Interface \"%s\"",tab.c_str(),_name.c_str());
    
//     for (std::list<Signal*>::iterator i  = _list_signal->begin();
// 	 i != _list_signal->end();
// 	 ++i)
//       _return &= (*i)->test_equi(depth+1);

//     log_printf(FUNC,Behavioural,FUNCTION,"End");
    
//     return _return;
//   };

}; // end namespace behavioural          
}; // end namespace morpheo              
