Bufferize datas in a circular way. More...
Bufferize datas in a circular way.
ElementType | Buffer items type. Items must be instanciable whitout parameters. (scalar type or class with constructor without parameters or with default values.) |
Size | Buffer size. |
Public Member Methods | |
CircularBuffer () | |
Default constructor. More... | |
![]() | |
ElementType | Read () |
Reads an item More... | |
void | Skip (Int32 n) |
Skips next items. More... | |
const ElementType & | GetAt (Int32 index) const |
Gets item at index. More... | |
const ElementType & | operator[] (Int32 index) const |
Array indexer operator. More... | |
ElementType & | GetAt (Int32 index) |
Gets item at index. More... | |
ElementType & | operator[] (Int32 index) |
Array indexer operator. More... | |
void | Write (ElementType Data) |
Write an item. More... | |
Int32 | GetLengthUsed () const |
Gets the circular buffer usage. More... | |
Int32 | GetLengthFree () const |
Gets the circular buffer availibility. More... | |
bool | IsEmpty () const |
Query if the circular buffer is empty. More... | |
bool | IsFull () |
Query if the circular buffer is full. More... | |
void | Clear () |
Clears the circular buffer. More... | |
|
inline |
Default constructor.