2022-01-19 16:32:54 +01:00
|
|
|
#pragma once
|
|
|
|
|
#include "Global.h"
|
2022-01-19 22:54:33 +01:00
|
|
|
#ifdef QUEUE_FROM_INST
|
|
|
|
|
#include "classes/QueueInst.h"
|
2022-01-19 16:32:54 +01:00
|
|
|
#include <queue>
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
2022-01-19 21:05:32 +01:00
|
|
|
class QueueFromInstance;
|
2022-01-19 16:32:54 +01:00
|
|
|
|
2022-01-19 21:05:32 +01:00
|
|
|
class QueueFromInstance {
|
2022-01-19 16:32:54 +01:00
|
|
|
public:
|
2022-01-19 21:05:32 +01:00
|
|
|
QueueFromInstance();
|
|
|
|
|
~QueueFromInstance();
|
2022-01-19 16:32:54 +01:00
|
|
|
|
2022-01-19 18:03:57 +01:00
|
|
|
void push(QueueInstance instance);
|
2022-01-19 16:32:54 +01:00
|
|
|
void pop();
|
2022-01-19 18:03:57 +01:00
|
|
|
QueueInstance front();
|
2022-01-19 16:32:54 +01:00
|
|
|
|
|
|
|
|
private:
|
2022-01-19 18:03:57 +01:00
|
|
|
queue<QueueInstance> queue1;
|
2022-01-19 16:32:54 +01:00
|
|
|
};
|
|
|
|
|
|
2022-01-19 22:54:33 +01:00
|
|
|
// extern QueueFromInstance* myQueue;
|
|
|
|
|
#endif
|