source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_find_interface.cpp @ 75

Last change on this file since 75 was 75, checked in by rosiere, 16 years ago

Update all component (except front_end) to :

  • new statistics model
  • no namespace std
File size: 805 bytes
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Interfaces.h"
9
10namespace morpheo              {
11namespace behavioural          {
12
13#undef  FUNCTION
14#define FUNCTION "Interfaces::find_interface"
15  Interface_fifo * Interfaces::find_interface (std::string name)
16  {
17    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
18
19    Interface_fifo * _return = NULL;
20    if (_list_interface->empty()== false)
21      {
22        std::list<Interface_fifo*>::iterator i = _list_interface->begin();
23
24        while (i != _list_interface->end())
25          {
26            if ((*i)->get_name() == name)
27              {
28                _return = (*i);
29                break;
30              }
31            ++i;
32          }
33      }
34   
35    log_printf(FUNC,Behavioural,FUNCTION,"End"); 
36
37    return _return;
38  };
39
40}; // end namespace behavioural         
41}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.