Go to the documentation of this file. 6 #ifndef AULA1_DYNAMICQUEUE_HPP 7 #define AULA1_DYNAMICQUEUE_HPP 20 string
getName() {
return "Dynamic Queue"; }
34 throw std::out_of_range(
"The queue is empty");
40 throw std::out_of_range(
"The queue is empty");
void enqueue(T val)
Add an element to the end of the queue.
Queue implementation with dynamic memory allocation.
bool isEmpty()
Check whether the structure is empty.
Abstract queue interface.
T dequeue()
Remove an element from the queue.
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
bool isFull()
Check whether the structure is full.
=======
>>>>>>> 36f9b37... fixed dependency of ProtectedLinkedList to Iterator
=======
>>>>>>> bded2143692dca559ffcc9e7202d9eb5fbfc45bf
=======
>>>>>>> master
int getSize()
Outputs the number of elements stored in the structure.
bool isFull()
Check whether the structure is full.
Doubly-linked list implementation with dynamic memory allocation.
DynamicQueue(int data[])
create the structure and populate it with the data from the array
T peek()
See the first value from the queue, without removing it.
string getName()
Provides the name of the data structure as a string representation.