filesaver
filesaver::services::BackgroundQueueWorker< T > Class Template Reference

#include <BackgroundQueueWorker.h>

Inheritance diagram for filesaver::services::BackgroundQueueWorker< T >:
filesaver::services::BackgroundWorker

Public Member Functions

 BackgroundQueueWorker ()
 
 BackgroundQueueWorker (std::string workerTag)
 
 BackgroundQueueWorker (std::string workerTag, std::shared_ptr< data::WorkQueue< T >> workQueue)
 
void push (const T &item)
 
void push (T &&item)
 
std::shared_ptr< data::WorkQueue< T > > getWorkQueue ()
 
void run () override
 
virtual void handler (std::vector< T >)
 
- Public Member Functions inherited from filesaver::services::BackgroundWorker
 BackgroundWorker ()
 
virtual ~BackgroundWorker ()
 
 BackgroundWorker (const BackgroundWorker &)=delete
 
BackgroundWorkeroperator= (const BackgroundWorker &)=delete
 
 BackgroundWorker (BackgroundWorker &&)=delete
 
BackgroundWorkeroperator= (BackgroundWorker &&)=delete
 
void start ()
 
void stop ()
 
bool isRunning ()
 

Detailed Description

template<typename T>
class filesaver::services::BackgroundQueueWorker< T >

Definition at line 21 of file BackgroundQueueWorker.h.

Constructor & Destructor Documentation

◆ BackgroundQueueWorker() [1/3]

template<typename T >
filesaver::services::BackgroundQueueWorker< T >::BackgroundQueueWorker ( )
inline

Definition at line 24 of file BackgroundQueueWorker.h.

◆ BackgroundQueueWorker() [2/3]

template<typename T >
filesaver::services::BackgroundQueueWorker< T >::BackgroundQueueWorker ( std::string  workerTag)
inlineexplicit

Definition at line 28 of file BackgroundQueueWorker.h.

◆ BackgroundQueueWorker() [3/3]

template<typename T >
filesaver::services::BackgroundQueueWorker< T >::BackgroundQueueWorker ( std::string  workerTag,
std::shared_ptr< data::WorkQueue< T >>  workQueue 
)
inline

Definition at line 33 of file BackgroundQueueWorker.h.

Member Function Documentation

◆ getWorkQueue()

template<typename T >
std::shared_ptr<data::WorkQueue<T> > filesaver::services::BackgroundQueueWorker< T >::getWorkQueue ( )
inline

Definition at line 48 of file BackgroundQueueWorker.h.

◆ handler()

template<typename T >
virtual void filesaver::services::BackgroundQueueWorker< T >::handler ( std::vector< T >  )
inlinevirtual

◆ push() [1/2]

template<typename T >
void filesaver::services::BackgroundQueueWorker< T >::push ( const T &  item)
inline

Definition at line 38 of file BackgroundQueueWorker.h.

◆ push() [2/2]

template<typename T >
void filesaver::services::BackgroundQueueWorker< T >::push ( T &&  item)
inline

Definition at line 43 of file BackgroundQueueWorker.h.

◆ run()

template<typename T >
void filesaver::services::BackgroundQueueWorker< T >::run ( )
inlineoverridevirtual

Reimplemented from filesaver::services::BackgroundWorker.

Definition at line 53 of file BackgroundQueueWorker.h.


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