версия с solid выгрузкой точек

This commit is contained in:
Dmitry Borisenko
2022-08-25 19:24:56 +02:00
parent a4b7eb00d7
commit 68774cec5f
5 changed files with 103 additions and 20 deletions

31
src/classes/IoTDB.cpp Normal file
View File

@@ -0,0 +1,31 @@
#include "classes/IoTDB.h"
IoTDB::IoTDB() {}
IoTDB::~IoTDB() {}
//добавим элемент в конец очереди
void IoTDB::push(QueueItems word) {
queue1.push(word);
}
//удалим элемент из начала очереди
void IoTDB::pop() {
if (!queue1.empty()) {
queue1.pop();
}
}
//вернуть элемент из начала очереди и удалить его
QueueItems IoTDB::front() {
if (!queue1.empty()) {
tmpItem = queue1.front();
queue1.pop();
}
return tmpItem;
}
bool IoTDB::empty() {
return queue1.empty();
}
IoTDB* myDB;