7 #ifndef AULA1_QUEUE_HPP 8 #define AULA1_QUEUE_HPP 19 std::string
getName() {
return "Queue Interface"; }
Base class for all data structures.
virtual T dequeue()=0
Remove an element from the queue.
Abstract queue interface.
std::string getName()
Provides the name of the data structure as a string representation.
virtual void enqueue(T val)=0
Add an element to the end of the queue.
virtual T peek()=0
See the first value from the queue, without removing it.