![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cQueue.h>
Public Member Functions | |
cQueueBase (ITERATE_t iReadLast=0, ITERATE_t iWriteLast=0) noexcept | |
void | InitQ (ITERATE_t iReadLast=0, ITERATE_t iWriteLast=0) noexcept |
bool | isEmptyQ () const noexcept |
void | EmptyQ () noexcept |
ITERATE_t | get_ReadIndex () const noexcept |
ITERATE_t | get_WriteIndex () const noexcept |
ITERATE_t | get_ReadQty () const |
void | AdvanceRead (ITERATE_t iCount=1) |
STREAM_SEEKRET_t | SeekQ (STREAM_OFFSET_t iOffset, SEEK_ORIGIN_TYPE eSeekOrigin=SEEK_Set) |
Protected Attributes | |
ITERATE_t | m_iReadLast |
old items removed/read from here. More... | |
ITERATE_t | m_iWriteLast |
new items added/written here. end of read. More... | |
Friends | |
class | cQueueTests |
All types of queues have this in common. read index and write index. This might be grow-able, static vs dynamic memory, fixed size, wrappable, etc. Base class for all Queues.
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
How much data is avail to read? // Assume will not will wrap to fill.
|
inlinenoexcept |
|
inlinenoexcept |
STREAM_SEEKRET_t Gray::cQueueBase::SeekQ | ( | STREAM_OFFSET_t | iOffset, |
SEEK_ORIGIN_TYPE | eSeekOrigin = SEEK_Set |
||
) |
eSeekOrigin = SEEK_CUR, etc move the current read start location.
|
friend |
|
protected |
old items removed/read from here.
|
protected |
new items added/written here. end of read.