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

◆ getNumberOfEntriesInQueue()

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.

◆ isQueueEmpty()

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

Definition at line 30 of file template_queue.h.

◆ pop() [1/2]

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

Definition at line 50 of file template_queue.h.

◆ pop() [2/2]

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

Definition at line 62 of file template_queue.h.

◆ push() [1/2]

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

Definition at line 73 of file template_queue.h.

◆ push() [2/2]

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

Definition at line 81 of file template_queue.h.

◆ waitForIncomingObject()

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

Definition at line 38 of file template_queue.h.

Member Data Documentation

◆ cond_

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

Definition at line 92 of file template_queue.h.

◆ mutex_

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

Definition at line 91 of file template_queue.h.

◆ queue_

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 Sep 7 2022 02:25:06