Files
IoTManager/src/classes/IoTDB.cpp
2022-08-25 19:24:56 +02:00

32 lines
625 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#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;