#ifndef ENVIRONMENT_QUEUE_SLOT_H
#define ENVIRONMENT_QUEUE_SLOT_H

#include <stdint.h>
#include <iostream>

namespace environment {
namespace queue {

  template <class T>
  class slot_t
  {
  public    : uint32_t _delay;     // delay of disponibilty of data
  public    : T        _data;

  public    : slot_t (void)
    {
    }
    
  public    : slot_t (uint32_t delay, T data)
    {
      _delay = delay;
      _data  = data;
    }
    
  public    : friend std::ostream& operator<< (std::ostream& output, const slot_t & x)
    {
      output << x._delay << " " << x._data;
      return output;
    }
  };
  
};
};
#endif
  
