35 inline T*
get() {
return _elem; }
37 inline const T*
get()
const {
return get(); }
73 void prepend(
T* elem);
77 inline unsigned int getSize()
const {
return _size; };
136 _head = _tail = NULL;
184 _tail->setNextQueueElement(newElement);
The WEMQueueElement represents an element of a single linked list.
T * get()
Returns the pointer to this element.
void setNextQueueElement(WEMQueueElement< T > *next)
Sets the next queue element to the given one.
const T * get() const
Returns the pointer to this element.
WEMQueueElement< T > * getNextQueueElement()
Return the next element in the queue.
The WEMQueue is a single linked list with pointers to its head and tail elements.
WEMQueueElement< T > * getTail() const
Returns the tail element of the queue.
unsigned int getSize() const
Returns the number of elements in the queue.
WEMQueueElement< T > * getHead() const
Returns the head element of the queue.