MeVisLab Toolbox Reference
ml::WEMQueueElement< T > Class Template Reference

The WEMQueueElement represents an element of a single linked list. More...

#include <WEMQueue.h>

Public Member Functions

 WEMQueueElement ()
 Default constructor.
 
 WEMQueueElement (T *elem)
 Constructor takes a T pointer as an argument.
 
 ~WEMQueueElement ()
 Default destructor.
 
Tget ()
 Returns the pointer to this element.
 
const Tget () const
 Returns the pointer to this element.
 
WEMQueueElement< T > * getNextQueueElement ()
 Return the next element in the queue.
 
void setNextQueueElement (WEMQueueElement< T > *next)
 Sets the next queue element to the given one.
 

Detailed Description

template<class T>
class ml::WEMQueueElement< T >

The WEMQueueElement represents an element of a single linked list.

Definition at line 23 of file WEMQueue.h.

Constructor & Destructor Documentation

◆ WEMQueueElement() [1/2]

template<class T >
ml::WEMQueueElement< T >::WEMQueueElement ( )

Default constructor.

Definition at line 99 of file WEMQueue.h.

References mlrange_cast().

◆ WEMQueueElement() [2/2]

template<class T >
ml::WEMQueueElement< T >::WEMQueueElement ( T * elem)

Constructor takes a T pointer as an argument.

and sets the T as its data.

Definition at line 108 of file WEMQueue.h.

References mlrange_cast().

◆ ~WEMQueueElement()

Default destructor.

Definition at line 117 of file WEMQueue.h.

Member Function Documentation

◆ get() [1/2]

template<class T >
T * ml::WEMQueueElement< T >::get ( )
inline

Returns the pointer to this element.

Definition at line 35 of file WEMQueue.h.

◆ get() [2/2]

template<class T >
const T * ml::WEMQueueElement< T >::get ( ) const
inline

Returns the pointer to this element.

Definition at line 37 of file WEMQueue.h.

References ml::WEMQueueElement< T >::get().

Referenced by ml::WEMQueueElement< T >::get().

◆ getNextQueueElement()

template<class T >
WEMQueueElement< T > * ml::WEMQueueElement< T >::getNextQueueElement ( )
inline

Return the next element in the queue.

Definition at line 39 of file WEMQueue.h.

Referenced by ml::WEMQueue< T >::popFront(), and ml::WEMQueue< T >::~WEMQueue().

◆ setNextQueueElement()

template<class T >
void ml::WEMQueueElement< T >::setNextQueueElement ( WEMQueueElement< T > * next)

Sets the next queue element to the given one.

Definition at line 126 of file WEMQueue.h.


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