Base interface for queues. More...
#include <Queue.hpp>
Public Member Functions | |
virtual T | dequeue ()=0 |
Dequeue an object. More... | |
virtual bool | empty () const =0 |
Returns true if the queue is empty. More... | |
virtual void | enqueue (T &&element)=0 |
Enqueue an object, moving the supplied element. More... | |
Base interface for queues.
T | the element type (must be move constructable and assignable) |
|
pure virtual |
Dequeue an object.
Depending on the implementation, this operation will either block or throw EmptyException when no elements are available for dequeueing.
Implemented in SharedMemoryQueue< T >, ArrayBlockingQueue< T >, SynchronizedQueue< T >, and BlockingQueue< T >.
|
pure virtual |
Returns true if the queue is empty.
Implemented in SharedMemoryQueue< T >, ArrayBlockingQueue< T >, BlockingQueue< T >, and SynchronizedQueue< T >.
|
pure virtual |
Enqueue an object, moving the supplied element.
Implemented in SharedMemoryQueue< T >, ArrayBlockingQueue< T >, SynchronizedQueue< T >, and BlockingQueue< T >.