35 inline T*
get() {
return _elem; }
37 inline const T*
get()
const {
return get(); }
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.
const T * get() const
Returns the pointer to this element.
WEMQueueElement()
Default constructor.
void setNextQueueElement(WEMQueueElement< T > *next)
Sets the next queue element to the given one.
T * get()
Returns the pointer to this element.
WEMQueueElement< T > * getNextQueueElement()
Return the next element in the queue.
~WEMQueueElement()
Default destructor.
WEMQueueElement< T > * getTail() const
Returns the tail element of the queue.
WEMQueue()
Default constructor.
WEMQueueElement< T > * getHead() const
Returns the head element of the queue.
unsigned int getSize() const
Returns the number of elements in the queue.
void prepend(T *elem)
Prepends a WEMQueueElement to the front of the queue.
~WEMQueue()
Default destructor.
void popFront()
Pops the head element.
void append(T *elem)
Appends a WEMQueueElement to the end of the queue.