|
XenevaOS
|
Shared functionality of all buffers. More...
#include <Buffers.h>

Public Member Functions | |
| BaseBuffer ()=default | |
| virtual | ~BaseBuffer ()=default |
| BaseBuffer (BaseBuffer const &)=delete | |
| BaseBuffer & | operator= (BaseBuffer const &)=delete |
| virtual T | read ()=0 |
| reads a single value | |
| virtual int | readArray (T data[], int len) |
| reads multiple values | |
| virtual int | clearArray (int len) |
| Removes the next len entries. | |
| virtual int | writeArray (const T data[], int len) |
| Fills the buffer data. | |
| virtual int | writeArrayOverwrite (const T data[], int len) |
| Fills the buffer data and overwrites the oldest data if the buffer is full. | |
| int | readFrames (T data[][2], int len) |
| reads multiple values for array of 2 dimensional frames | |
| template<int rows, int channels> | |
| int | readFrames (T(&data)[rows][channels]) |
| virtual T | peek ()=0 |
| peeks the actual entry from the buffer | |
| virtual bool | isFull ()=0 |
| checks if the buffer is full | |
| bool | isEmpty () |
| virtual bool | write (T data)=0 |
| write add an entry to the buffer | |
| virtual void | reset ()=0 |
| clears the buffer | |
| void | clear () |
| same as reset | |
| virtual int | available ()=0 |
| provides the number of entries that are available to read | |
| virtual int | availableForWrite ()=0 |
| provides the number of entries that are available to write | |
| virtual T * | address ()=0 |
| returns the address of the start of the physical read buffer | |
| virtual size_t | size ()=0 |
Protected Member Functions | |
| void | setWritePos (int pos) |
Shared functionality of all buffers.
|
default |
|
virtualdefault |
|
delete |
|
pure virtual |
returns the address of the start of the physical read buffer
Implemented in libhelix::SingleBuffer< T >.
|
pure virtual |
provides the number of entries that are available to read
Implemented in libhelix::SingleBuffer< T >.
|
pure virtual |
provides the number of entries that are available to write
Implemented in libhelix::SingleBuffer< T >.
|
inline |
same as reset
|
inlinevirtual |
Removes the next len entries.
Reimplemented in libhelix::SingleBuffer< T >.
|
inline |
|
pure virtual |
checks if the buffer is full
Implemented in libhelix::SingleBuffer< T >.
|
delete |
|
pure virtual |
peeks the actual entry from the buffer
Implemented in libhelix::SingleBuffer< T >.
|
pure virtual |
reads a single value
Implemented in libhelix::SingleBuffer< T >.
|
inlinevirtual |
reads multiple values
|
inline |
reads multiple values for array of 2 dimensional frames
|
inline |
|
pure virtual |
clears the buffer
Implemented in libhelix::SingleBuffer< T >.
|
inlineprotected |
|
pure virtual |
Implemented in libhelix::SingleBuffer< T >.
|
pure virtual |
write add an entry to the buffer
Implemented in libhelix::SingleBuffer< T >.
|
inlinevirtual |
Fills the buffer data.
|
inlinevirtual |
Fills the buffer data and overwrites the oldest data if the buffer is full.