Public Member Functions | Private Attributes | List of all members
Queue< T > Class Template Reference

#include <template_queue.h>

Public Member Functions

int getNumberOfEntriesInQueue ()
 get number of entries in queue More...
 
bool isQueueEmpty ()
 
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< T > queue_
 

Detailed Description

template<typename T>
class Queue< T >

Definition at line 12 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 21 of file template_queue.h.

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

Definition at line 30 of file template_queue.h.

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

Definition at line 50 of file template_queue.h.

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

Definition at line 62 of file template_queue.h.

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

Definition at line 73 of file template_queue.h.

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

Definition at line 81 of file template_queue.h.

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

Definition at line 38 of file template_queue.h.

Member Data Documentation

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

Definition at line 92 of file template_queue.h.

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

Definition at line 91 of file template_queue.h.

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

Definition at line 90 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 Wed May 5 2021 03:05:48