QXRD  0.11.16
qcepintegrateddataqueue.h
Go to the documentation of this file.
1 #ifndef QCEPINTEGRATEDDATAQUEUE_H
2 #define QCEPINTEGRATEDDATAQUEUE_H
3 
4 #include <QObject>
5 #include <QReadWriteLock>
6 #include <QQueue>
7 #include <QSharedPointer>
9 
10 class QcepIntegratedDataQueue : public QObject
11 {
12  Q_OBJECT
13 
14 public:
15  QcepIntegratedDataQueue(QString name);
17 
19  void enqueue(QcepIntegratedDataPtr data);
20  int size() const;
22 
23  void deallocate();
24 
25 private:
26  mutable QReadWriteLock m_Lock;
27  QQueue< QcepIntegratedDataPtr > m_Queue;
28  QString m_Name;
29  int m_Debug;
30 };
31 
32 #endif // QCEPINTEGRATEDDATAQUEUE_H
QcepIntegratedDataPtr dequeue()
QSharedPointer< QcepIntegratedData > QcepIntegratedDataPtr
QcepIntegratedDataPtr operator[](int n)
void enqueue(QcepIntegratedDataPtr data)
QQueue< QcepIntegratedDataPtr > m_Queue