ml::WEMQueue< T > Class Template Reference

The WEMQueue is a single linked list with pointers to its head and tail elements. More...

#include <WEMQueue.h>

List of all members.

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.


Detailed Description

template<class T>
class ml::WEMQueue< T >

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 57 of file WEMQueue.h.


Constructor & Destructor Documentation

template<class T >
ml::WEMQueue< T >::WEMQueue (  )  [inline]

Default constructor.

Definition at line 141 of file WEMQueue.h.

References ML_TRACE_IN_TIME_CRITICAL.

template<class T >
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.

template<class T >
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.


Member Function Documentation

template<class T >
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.

template<class T >
WEMQueueElement<T>* ml::WEMQueue< T >::getHead (  )  const [inline]

Returns the head element of the queue.

Definition at line 78 of file WEMQueue.h.

template<class T >
unsigned int ml::WEMQueue< T >::getSize (  )  const [inline]

Returns the number of elements in the queue.

Definition at line 76 of file WEMQueue.h.

template<class T >
WEMQueueElement<T>* ml::WEMQueue< T >::getTail (  )  const [inline]

Returns the tail element of the queue.

Definition at line 80 of file WEMQueue.h.

template<class T >
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.

template<class T >
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().


The documentation for this class was generated from the following file:

Generated on Sat Sep 3 18:39:41 2011 for MeVisLab Toolbox Reference by  doxygen 1.5.8