OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
op::Queue< TDatums, TQueue > Class Template Reference

#include <queue.hpp>

Inheritance diagram for op::Queue< TDatums, TQueue >:
op::QueueBase< TDatums, std::queue< TDatums > >

Public Member Functions

 Queue (const long long maxSize)
 
virtual ~Queue ()
 
TDatums front () const
 
- Public Member Functions inherited from op::QueueBase< TDatums, std::queue< TDatums > >
 QueueBase (const long long maxSize=-1)
 
virtual ~QueueBase ()
 
bool forceEmplace (TDatums &tDatums)
 
bool tryEmplace (TDatums &tDatums)
 
bool waitAndEmplace (TDatums &tDatums)
 
bool forcePush (const TDatums &tDatums)
 
bool tryPush (const TDatums &tDatums)
 
bool waitAndPush (const TDatums &tDatums)
 
bool tryPop (TDatums &tDatums)
 
bool tryPop ()
 
bool waitAndPop (TDatums &tDatums)
 
bool waitAndPop ()
 
bool empty () const
 
void stop ()
 
void stopPusher ()
 
void addPopper ()
 
void addPusher ()
 
bool isRunning () const
 
bool isFull () const
 
size_t size () const
 
void clear ()
 

Additional Inherited Members

- Protected Member Functions inherited from op::QueueBase< TDatums, std::queue< TDatums > >
unsigned long long getMaxSize () const
 
- Protected Attributes inherited from op::QueueBase< TDatums, std::queue< TDatums > >
std::mutex mMutex
 
long long mPoppers
 
long long mPushers
 
long long mMaxPoppersPushers
 
bool mPopIsStopped
 
bool mPushIsStopped
 
std::condition_variable mConditionVariable
 
std::queue< TDatums > mTQueue
 

Detailed Description

template<typename TDatums, typename TQueue = std::queue<TDatums>>
class op::Queue< TDatums, TQueue >

Definition at line 11 of file queue.hpp.

Constructor & Destructor Documentation

◆ Queue()

template<typename TDatums , typename TQueue >
op::Queue< TDatums, TQueue >::Queue ( const long long  maxSize)
explicit

Definition at line 36 of file queue.hpp.

◆ ~Queue()

template<typename TDatums , typename TQueue >
op::Queue< TDatums, TQueue >::~Queue
virtual

Definition at line 46 of file queue.hpp.

Member Function Documentation

◆ front()

template<typename TDatums , typename TQueue >
TDatums op::Queue< TDatums, TQueue >::front
virtual

Implements op::QueueBase< TDatums, std::queue< TDatums > >.

Definition at line 51 of file queue.hpp.


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