Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
BufferWorkQueue Class Reference

Work queue for Buffers that knows the total number of bytes in the queue. More...

#include <WorkQueue.h>

Public Member Functions

 BufferWorkQueue (std::size_t maxSize=0)
 
void push (Buffer buffer)
 
bool pop (Buffer &buffer)
 
void setMaxSize (std::size_t maxSize)
 
void finish ()
 
std::size_t size ()
 
 BufferWorkQueue (std::size_t maxSize=0)
 
void push (Buffer buffer)
 
bool pop (Buffer &buffer)
 
void setMaxSize (std::size_t maxSize)
 
void finish ()
 
std::size_t size ()
 
 BufferWorkQueue (std::size_t maxSize=0)
 
void push (Buffer buffer)
 
bool pop (Buffer &buffer)
 
void setMaxSize (std::size_t maxSize)
 
void finish ()
 
std::size_t size ()
 

Detailed Description

Work queue for Buffers that knows the total number of bytes in the queue.

Constructor & Destructor Documentation

◆ BufferWorkQueue() [1/3]

BufferWorkQueue ( std::size_t maxSize = 0)
inline

◆ BufferWorkQueue() [2/3]

BufferWorkQueue ( std::size_t maxSize = 0)
inline

◆ BufferWorkQueue() [3/3]

BufferWorkQueue ( std::size_t maxSize = 0)
inline

Member Function Documentation

◆ finish() [1/3]

void finish ( )
inline

◆ finish() [2/3]

void finish ( )
inline

◆ finish() [3/3]

void finish ( )
inline

◆ pop() [1/3]

bool pop ( Buffer & buffer)
inline

◆ pop() [2/3]

bool pop ( Buffer & buffer)
inline

◆ pop() [3/3]

bool pop ( Buffer & buffer)
inline

◆ push() [1/3]

void push ( Buffer buffer)
inline

◆ push() [2/3]

void push ( Buffer buffer)
inline

◆ push() [3/3]

void push ( Buffer buffer)
inline

◆ setMaxSize() [1/3]

void setMaxSize ( std::size_t maxSize)
inline

◆ setMaxSize() [2/3]

void setMaxSize ( std::size_t maxSize)
inline

◆ setMaxSize() [3/3]

void setMaxSize ( std::size_t maxSize)
inline

◆ size() [1/3]

std::size_t size ( )
inline

Blocks until finish() has been called.

Returns
The total number of bytes of all the Buffers currently in the queue.

◆ size() [2/3]

std::size_t size ( )
inline

Blocks until finish() has been called.

Returns
The total number of bytes of all the Buffers currently in the queue.

◆ size() [3/3]

std::size_t size ( )
inline

Blocks until finish() has been called.

Returns
The total number of bytes of all the Buffers currently in the queue.

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