Queue template. More...
#include <gelQueue.h>
Public Member Functions | |
GelQueue () | |
Default constructor. | |
~GelQueue () | |
Destructor. | |
void | enqueue (const dType &item) |
Adds an item to the tail of the queue. | |
dType | dequeue () |
Removes the item at the head of the queue and returns it. | |
dType | peek () |
Gets the item at the head of the queue. | |
const dType | peek () const |
Gets the item at the head of the queue. |
Queue template.
gel::GelQueue< dType >::GelQueue | ( | ) | [inline] |
Default constructor.
Constructs an empty queue.
gel::GelQueue< dType >::~GelQueue | ( | ) | [inline] |
Destructor.
void gel::GelQueue< dType >::enqueue | ( | const dType & | item | ) | [inline] |
Adds an item to the tail of the queue.
item | : The item to add. |
dType gel::GelQueue< dType >::dequeue | ( | ) | [inline] |
Removes the item at the head of the queue and returns it.
dType gel::GelQueue< dType >::peek | ( | ) | [inline] |
Gets the item at the head of the queue.
const dType gel::GelQueue< dType >::peek | ( | ) | const [inline] |
Gets the item at the head of the queue.
This is an overloaded function.
API Documentation by Mark D. Procarione | Generated by |