Public Member Functions | Protected Member Functions | Protected 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 (const std::vector< std::string > &datagram_keywords)
 
void push (const T &item)
 
bool waitForIncomingObject (int timeOutInMs, const std::vector< std::string > &datagram_keywords)
 

Protected Member Functions

bool findFirstByKeyword (const std::vector< std::string > &keywords, typename std::list< T >::iterator &iter)
 

Protected Attributes

std::condition_variable cond_
 
std::mutex mutex_
 
std::list< T > queue_
 

Detailed Description

template<typename T>
class Queue< T >

Definition at line 13 of file template_queue.h.

Member Function Documentation

◆ findFirstByKeyword()

template<typename T >
bool Queue< T >::findFirstByKeyword ( const std::vector< std::string > &  keywords,
typename std::list< T >::iterator &  iter 
)
inlineprotected

Definition at line 75 of file template_queue.h.

◆ 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 22 of file template_queue.h.

◆ isQueueEmpty()

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

Definition at line 30 of file template_queue.h.

◆ pop()

template<typename T >
T Queue< T >::pop ( const std::vector< std::string > &  datagram_keywords)
inline

Definition at line 50 of file template_queue.h.

◆ push()

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

Definition at line 63 of file template_queue.h.

◆ waitForIncomingObject()

template<typename T >
bool Queue< T >::waitForIncomingObject ( int  timeOutInMs,
const std::vector< std::string > &  datagram_keywords 
)
inline

Definition at line 38 of file template_queue.h.

Member Data Documentation

◆ cond_

template<typename T >
std::condition_variable Queue< T >::cond_
protected

Definition at line 133 of file template_queue.h.

◆ mutex_

template<typename T >
std::mutex Queue< T >::mutex_
protected

Definition at line 132 of file template_queue.h.

◆ queue_

template<typename T >
std::list<T> Queue< T >::queue_
protected

Definition at line 131 of file template_queue.h.


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


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:14