![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cQueue.h>
Classes | |
| class | cQueueChunk |
Public Member Functions | |
| cQueueChunked (ITERATE_t nGrowSizeChunk) | |
| ~cQueueChunked () | |
| bool | isEmptyQ () const |
| void | EmptyQ () |
| ITERATE_t | get_ReadQtyT () const |
| ITERATE_t | get_ReadQtyC () const |
| const TYPE * | get_ReadPtrC () const |
| void | AdvanceRead (ITERATE_t iCount=1) |
| ITERATE_t | get_WriteQty (void) const |
| TYPE * | GetWritePrepared (ITERATE_t iDesiredCount=1) |
| void | AdvanceWrite (ITERATE_t iCount=1) |
| TYPE | Read1 (void) |
| ITERATE_t | ReadQty (TYPE *pBuf, ITERATE_t nCountMax) |
| void | WriteQ (TYPE val) |
| HRESULT | WriteQty (const TYPE *pBuf, ITERATE_t nCount) |
a list of Q chunks to use as a large queue. Delete chunks when fully read. allocate new chunks when we need to write. No attempt to pool allocated chunks.
|
inline |
|
inline |
|
inline |
Destructive read.
|
inline |
|
inline |
|
inline |
C = contiguous entries in the first block.
|
inline |
C = get contiguous entries in the first block.
|
inline |
get total number of entries
|
inline |
Qty Avail to be written to.
|
inline |
Use get_WriteQty() to check size. iDesiredCount of TYPE
|
inline |
|
inline |
|
inline |
copy data out.
|
inline |
|
inline |
copy data in.