mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 07:02:17 +03:00
Добавил три типа очередей: очередь сущностей, очередь структур, и очередь char
This commit is contained in:
24
include/classes/QueueFromInstance.h
Normal file
24
include/classes/QueueFromInstance.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include "classes/QueueInst.h"
|
||||
#include "Global.h"
|
||||
#include <queue>
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class QueueFromInstance;
|
||||
|
||||
class QueueFromInstance {
|
||||
public:
|
||||
QueueFromInstance();
|
||||
~QueueFromInstance();
|
||||
|
||||
void push(QueueInstance instance);
|
||||
void pop();
|
||||
QueueInstance front();
|
||||
|
||||
private:
|
||||
queue<QueueInstance> queue1;
|
||||
};
|
||||
|
||||
extern QueueFromInstance* myQueue;
|
||||
Reference in New Issue
Block a user