Public Member Functions | Private Attributes
Queue< T > Class Template Reference

#include <template_queue.h>

List of all members.

Public Member Functions

int getNumberOfEntriesInQueue ()
 get number of entries in queue
bool isQueueEmpty ()
T pop ()
void pop (T &item)
void push (const T &item)
void push (T &item)
bool waitForIncomingObject (int timeOutInMs)

Private Attributes

boost::condition_variable cond_
boost::mutex mutex_
std::queue< Tqueue_

Detailed Description

template<typename T>
class Queue< T >

Definition at line 10 of file template_queue.h.


Member Function Documentation

template<typename T>
int Queue< T >::getNumberOfEntriesInQueue ( ) [inline]

get number of entries in queue

Returns:
Number of entries in queue
See also:
isQueueEmpty()

Definition at line 19 of file template_queue.h.

template<typename T>
bool Queue< T >::isQueueEmpty ( ) [inline]

Definition at line 29 of file template_queue.h.

template<typename T>
T Queue< T >::pop ( ) [inline]

Definition at line 49 of file template_queue.h.

template<typename T>
void Queue< T >::pop ( T item) [inline]

Definition at line 61 of file template_queue.h.

template<typename T>
void Queue< T >::push ( const T item) [inline]

Definition at line 72 of file template_queue.h.

template<typename T>
void Queue< T >::push ( T item) [inline]

Definition at line 80 of file template_queue.h.

template<typename T>
bool Queue< T >::waitForIncomingObject ( int  timeOutInMs) [inline]

Definition at line 37 of file template_queue.h.


Member Data Documentation

template<typename T>
boost::condition_variable Queue< T >::cond_ [private]

Definition at line 91 of file template_queue.h.

template<typename T>
boost::mutex Queue< T >::mutex_ [private]

Definition at line 90 of file template_queue.h.

template<typename T>
std::queue<T> Queue< T >::queue_ [private]

Definition at line 89 of file template_queue.h.


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


sick_scan
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Tue Jul 9 2019 05:05:35