source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue_Control/src/Queue_Control_flags.cpp @ 56

Last change on this file since 56 was 56, checked in by rosiere, 17 years ago

Factorisation du contrôle de file d'attente dans une classe "Queue_Control"

File size: 845 bytes
Line 
1#include "Behavioural/Generic/Queue_Control/include/Queue_Control.h"
2
3namespace morpheo {
4namespace behavioural {
5namespace generic {
6namespace queue_control {
7
8#undef  FUNCTION
9#define FUNCTION "Queue_Control::full"
10  bool Queue_Control::full (void)
11  {
12    log_printf(FUNC,Queue_Control,FUNCTION,"Begin");
13    uint32_t _return = (_nb_elt == _nb_elt_max);
14    log_printf(FUNC,Queue_Control,FUNCTION,"End");
15   
16    return _return;
17  };
18
19#undef  FUNCTION
20#define FUNCTION "Queue_Control::empty"
21  bool Queue_Control::empty (void)
22  {
23    log_printf(FUNC,Queue_Control,FUNCTION,"Begin");
24    uint32_t _return = (_nb_elt == 0);
25    log_printf(FUNC,Queue_Control,FUNCTION,"End");
26   
27    return _return;
28  };
29
30}; // end namespace queue_control
31}; // end namespace generic
32}; // end namespace behavioural
33}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.