eq::base::MTQueue< T > Class Template Reference

#include <mtQueue.h>

Collaboration diagram for eq::base::MTQueue< T >:

[legend]

List of all members.


Detailed Description

template<typename T>
class eq::base::MTQueue< T >

A queue with a blocking pop() implementation, typically used between two execution threads.

Definition at line 24 of file mtQueue.h.


Public Member Functions

 MTQueue ()
 Constructs a new queue.
 ~MTQueue ()
 Destructs the Queue.
bool empty () const
size_t size () const
pop ()
 Retrieve and pop the front element from the queue, may block.
tryPop ()
 Try to get the front element from the queue, returns 0 if empty.
back () const
void push (const T &element)
void pushFront (const T &element)

Static Public Attributes

static const T NONE

Constructor & Destructor Documentation

template<typename T>
eq::base::MTQueue< T >::~MTQueue (  ) 

Destructs the Queue.


Member Function Documentation

template<typename T>
bool eq::base::MTQueue< T >::empty (  )  const [inline]

Returns:
true if the queue is empty, false otherwise.

Definition at line 36 of file mtQueue.h.

template<typename T>
size_t eq::base::MTQueue< T >::size (  )  const [inline]

Returns:
the number of items currently in the queue.

Definition at line 39 of file mtQueue.h.

template<typename T>
T eq::base::MTQueue< T >::pop (  ) 

Retrieve and pop the front element from the queue, may block.

template<typename T>
T eq::base::MTQueue< T >::tryPop (  ) 

Try to get the front element from the queue, returns 0 if empty.


The documentation for this class was generated from the following file:
Generated on Sat Dec 6 12:01:49 2008 for Equalizer 0.6 by  1.5.5