FACT++  1.0
Queue< T, List > Class Template Reference

#include <Queue.h>

+ Inheritance diagram for Queue< T, List >:
+ Collaboration diagram for Queue< T, List >:

Public Member Functions

 Queue (const callback &f, bool startup=true)
 
 Queue (const Queue< T, List > &q)
 
Queue< T, List > & operator= (const Queue< T, List > &q)
 
 ~Queue ()
 
bool start ()
 
bool stop ()
 
bool abort ()
 
bool wait (bool abrt=false)
 
bool enablePromptExecution ()
 
bool disablePromptExecution ()
 
bool setPromptExecution (bool state)
 
bool post (const T &val)
 
bool notify ()
 
bool move (List &x, typename List::iterator i)
 
size_t size () const
 
bool empty () const
 
bool operator< (const Queue &other) const
 
 Queue (const callback &f)
 
 ~Queue ()
 
bool start ()
 
bool stop ()
 
bool abort ()
 
bool wait (bool abrt=false)
 
bool post (const T &val)
 
bool move (std::list< T > &x, typename std::list< T >::iterator i)
 
size_t size () const
 
bool empty () const
 

Private Types

enum  state_t {
  kIdle, kRun, kStop, kAbort,
  kTrigger, kPrompt, kIdle, kRun,
  kStop, kAbort
}
 
enum  state_t {
  kIdle, kRun, kStop, kAbort,
  kTrigger, kPrompt, kIdle, kRun,
  kStop, kAbort
}
 
typedef std::function< bool(const T &)> callback
 
typedef std::function< void(const T &)> callback
 

Private Member Functions

void Thread ()
 
void Thread ()
 

Private Attributes

size_t fSize
 
List fList
 
std::mutex fMutex
 
std::condition_variable fCond
 
state_t fState
 
callback fCallback
 
std::thread fThread
 
std::list< T > fList
 

Detailed Description

template<class T, class List = std::list<T>>
class Queue< T, List >

Definition at line 28 of file Queue.h.


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