FifoQueue.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef PROTOCOLS__GENERICS__FIFO_QUEUE_H
00024 #define PROTOCOLS__GENERICS__FIFO_QUEUE_H
00025
00026 #include "Imports.h"
00027 #include "DataQueue.h"
00028
00029 namespace Protocols {
00030 namespace Generics {
00031
00033
00035 class FifoQueue : public DataQueue
00036 {
00037 REFERENCE_OBJECT (FifoQueue)
00038
00039 public:
00040 FifoQueue();
00041
00042 bool isEmpty() const;
00043 void enqueue (const Data &);
00044 Data next() const;
00045 void dequeue();
00046
00047 private:
00048 QList <Data> queue;
00049 };
00050
00051 }
00052 }
00053
00054 #endif // PROTOCOLS__GENERICS__FIFO_QUEUE_H