m2etis  0.4
m2etis::util::DoubleBufferQueue< T, producer, consumer > Class Template Reference

#include <DoubleBufferQueue.h>

Inheritance diagram for m2etis::util::DoubleBufferQueue< T, producer, consumer >:
Inheritance graph

Public Member Functions

 DoubleBufferQueue ()
 default constructor More...
 
void push (const T &value)
 pushes the given value into the queue More...
 
void pop ()
 removes first entry of the queue More...
 
front ()
 returns first entry of the queue More...
 
poll ()
 remoes first entry of the queue and returns its value More...
 
bool empty () const
 returns true if the queue is empty, otherwise false More...
 
size_t size () const
 returns size of the queue More...
 
void clear ()
 removes all elements in the queue More...
 

Detailed Description

template<typename T, bool producer = true, bool consumer = true>
class m2etis::util::DoubleBufferQueue< T, producer, consumer >

Definition at line 35 of file DoubleBufferQueue.h.

Constructor & Destructor Documentation

template<typename T, bool producer = true, bool consumer = true>
m2etis::util::DoubleBufferQueue< T, producer, consumer >::DoubleBufferQueue ( )
inline

default constructor

Definition at line 40 of file DoubleBufferQueue.h.

Member Function Documentation

template<typename T, bool producer = true, bool consumer = true>
void m2etis::util::DoubleBufferQueue< T, producer, consumer >::clear ( )
inline

removes all elements in the queue

Definition at line 119 of file DoubleBufferQueue.h.

Here is the caller graph for this function:

template<typename T, bool producer = true, bool consumer = true>
bool m2etis::util::DoubleBufferQueue< T, producer, consumer >::empty ( ) const
inline

returns true if the queue is empty, otherwise false

Definition at line 105 of file DoubleBufferQueue.h.

Here is the caller graph for this function:

template<typename T, bool producer = true, bool consumer = true>
T m2etis::util::DoubleBufferQueue< T, producer, consumer >::front ( )
inline

returns first entry of the queue

Definition at line 71 of file DoubleBufferQueue.h.

Here is the caller graph for this function:

template<typename T, bool producer = true, bool consumer = true>
T m2etis::util::DoubleBufferQueue< T, producer, consumer >::poll ( )
inline

remoes first entry of the queue and returns its value

Definition at line 87 of file DoubleBufferQueue.h.

Here is the caller graph for this function:

template<typename T, bool producer = true, bool consumer = true>
void m2etis::util::DoubleBufferQueue< T, producer, consumer >::pop ( )
inline

removes first entry of the queue

Definition at line 55 of file DoubleBufferQueue.h.

Here is the caller graph for this function:

template<typename T, bool producer = true, bool consumer = true>
void m2etis::util::DoubleBufferQueue< T, producer, consumer >::push ( const T &  value)
inline

pushes the given value into the queue

Definition at line 46 of file DoubleBufferQueue.h.

Here is the caller graph for this function:

template<typename T, bool producer = true, bool consumer = true>
size_t m2etis::util::DoubleBufferQueue< T, producer, consumer >::size ( ) const
inline

returns size of the queue

Definition at line 112 of file DoubleBufferQueue.h.


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