|
MeVisLab Toolbox Reference
|
The WEMQueue is a single linked list with pointers to its head and tail elements. More...
#include <WEMQueue.h>
Public Member Functions | |
| WEMQueue () | |
| Default constructor. | |
| WEMQueue (T *elem) | |
| Constructor takes a T as an argument and sets up a queue with that T as a single element (head and tail). | |
| ~WEMQueue () | |
| Default destructor. | |
| void | append (T *elem) |
| Appends a WEMQueueElement to the end of the queue. | |
| void | prepend (T *elem) |
| Prepends a WEMQueueElement to the front of the queue. | |
| void | popFront () |
| Pops the head element. | |
| unsigned int | getSize () const |
| Returns the number of elements in the queue. | |
| WEMQueueElement< T > * | getHead () const |
| Returns the head element of the queue. | |
| WEMQueueElement< T > * | getTail () const |
| Returns the tail element of the queue. | |
The WEMQueue is a single linked list with pointers to its head and tail elements.
It provides the methods 'append(T*)' and 'popFront()', and information about the number of elements in the queue.
Definition at line 62 of file WEMQueue.h.
| ml::WEMQueue< T >::WEMQueue | ( | ) |
| ml::WEMQueue< T >::WEMQueue | ( | T * | elem | ) |
Constructor takes a T as an argument and sets up a queue with that T as a single element (head and tail).
Definition at line 148 of file WEMQueue.h.
References mlrange_cast().
| ml::WEMQueue< T >::~WEMQueue | ( | ) |
Default destructor.
Definition at line 161 of file WEMQueue.h.
References ml::WEMQueueElement< T >::getNextQueueElement(), and mlrange_cast().
Appends a WEMQueueElement to the end of the queue.
Definition at line 177 of file WEMQueue.h.
References mlrange_cast().
|
inline |
Returns the head element of the queue.
Definition at line 85 of file WEMQueue.h.
Returns the number of elements in the queue.
Definition at line 80 of file WEMQueue.h.
|
inline |
Returns the tail element of the queue.
Definition at line 90 of file WEMQueue.h.
| void ml::WEMQueue< T >::popFront | ( | ) |
Pops the head element.
Definition at line 213 of file WEMQueue.h.
References ml::WEMQueueElement< T >::getNextQueueElement(), and mlrange_cast().
Prepends a WEMQueueElement to the front of the queue.
Definition at line 195 of file WEMQueue.h.
References mlrange_cast().