source: trunk/IPs/systemC/Environment/Queue/include/Slot.h @ 80

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

Oups, Environnement is french :P

File size: 629 bytes
Line 
1#ifndef ENVIRONMENT_QUEUE_SLOT_H
2#define ENVIRONMENT_QUEUE_SLOT_H
3
4#include <stdint.h>
5#include <iostream>
6
7namespace environment {
8namespace queue {
9
10  template <class T>
11  class slot_t
12  {
13  public    : uint32_t _delay;     // delay of disponibilty of data
14  public    : T        _data;
15
16  public    : slot_t (void)
17    {
18    }
19   
20  public    : slot_t (uint32_t delay, T data)
21    {
22      _delay = delay;
23      _data  = data;
24    }
25   
26  public    : friend std::ostream& operator<< (std::ostream& output, const slot_t & x)
27    {
28      output << x._delay << " " << x._data;
29      return output;
30    }
31  };
32 
33};
34};
35#endif
36 
Note: See TracBrowser for help on using the repository browser.