#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. | |
It provides the methods 'append(T*)' and 'popFront()', and information about the number of elements in the queue.
Definition at line 57 of file WEMQueue.h.
| ml::WEMQueue< T >::WEMQueue | ( | ) | [inline] |
Default constructor.
Definition at line 141 of file WEMQueue.h.
References ML_TRACE_IN_TIME_CRITICAL.
| ml::WEMQueue< T >::WEMQueue | ( | T * | elem | ) | [inline] |
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 153 of file WEMQueue.h.
References ML_CHECK_NEW, and ML_TRACE_IN_TIME_CRITICAL.
| ml::WEMQueue< T >::~WEMQueue | ( | ) | [inline] |
Default destructor.
Definition at line 169 of file WEMQueue.h.
References ml::WEMQueueElement< T >::getNextQueueElement(), ML_DELETE, and ML_TRACE_IN_TIME_CRITICAL.
| void ml::WEMQueue< T >::append | ( | T * | elem | ) | [inline] |
Appends a WEMQueueElement to the end of the queue.
Definition at line 188 of file WEMQueue.h.
References ML_CHECK_NEW, and ML_TRACE_IN_TIME_CRITICAL.
| WEMQueueElement<T>* ml::WEMQueue< T >::getHead | ( | ) | const [inline] |
| unsigned int ml::WEMQueue< T >::getSize | ( | ) | const [inline] |
| WEMQueueElement<T>* ml::WEMQueue< T >::getTail | ( | ) | const [inline] |
| void ml::WEMQueue< T >::popFront | ( | ) | [inline] |
Pops the head element.
Definition at line 228 of file WEMQueue.h.
References ml::WEMQueueElement< T >::getNextQueueElement(), ML_DELETE, and ML_TRACE_IN_TIME_CRITICAL.
| void ml::WEMQueue< T >::prepend | ( | T * | elem | ) | [inline] |
Prepends a WEMQueueElement to the front of the queue.
Definition at line 208 of file WEMQueue.h.
References ML_CHECK_NEW, ML_TRACE_IN_TIME_CRITICAL, and ml::WEMQueueElement< T >::setNextQueueElement().
1.5.8