UtilsLite
Utilities for C++ programming
Loading...
Searching...
No Matches
Utils::tp::Queue Class Reference

#include <ThreadPoolBase.hxx>

Classes

class  TaskData
 

Public Member Functions

 Queue (Queue const &)=delete
 
 Queue (Queue &&)=delete
 
Queueoperator= (Queue const &)=delete
 
Queueoperator= (Queue &&)=delete
 
 Queue (unsigned capacity)
 
void push (TaskData *task)
 
TaskDatapop ()
 
unsigned size () const
 
bool empty () const
 
bool is_full () const
 
unsigned capacity () const
 
void clear ()
 clear queue and delete tasks
 
void resize (unsigned capacity)
 
 ~Queue ()=default
 

Constructor & Destructor Documentation

◆ Queue() [1/3]

Utils::tp::Queue::Queue ( Queue const & )
delete

◆ Queue() [2/3]

Utils::tp::Queue::Queue ( Queue && )
delete

◆ Queue() [3/3]

Utils::tp::Queue::Queue ( unsigned capacity)
inlineexplicit

◆ ~Queue()

Utils::tp::Queue::~Queue ( )
default

Member Function Documentation

◆ capacity()

unsigned Utils::tp::Queue::capacity ( ) const
inline

◆ clear()

void Utils::tp::Queue::clear ( )
inline

clear queue and delete tasks

◆ empty()

bool Utils::tp::Queue::empty ( ) const
inline

◆ is_full()

bool Utils::tp::Queue::is_full ( ) const
inline

◆ operator=() [1/2]

Queue & Utils::tp::Queue::operator= ( Queue && )
delete

◆ operator=() [2/2]

Queue & Utils::tp::Queue::operator= ( Queue const & )
delete

◆ pop()

TaskData * Utils::tp::Queue::pop ( )
inline

◆ push()

void Utils::tp::Queue::push ( TaskData * task)
inline

◆ resize()

void Utils::tp::Queue::resize ( unsigned capacity)
inline

◆ size()

unsigned Utils::tp::Queue::size ( ) const
inline

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