mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 15:12:19 +03:00
версия с solid выгрузкой точек
This commit is contained in:
31
src/classes/IoTDB.cpp
Normal file
31
src/classes/IoTDB.cpp
Normal 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;
|
||||
Reference in New Issue
Block a user