|
stmm-games-doc
0.32.0
|

Public Member Functions | |
| CircularBuffer (int32_t nSize) noexcept | |
| Constructor. More... | |
| int32_t | capacity () const noexcept |
| The (fixed) capacity of the buffer. More... | |
| void | clear () noexcept |
| Clears the buffer. More... | |
| bool | isEmpty () const noexcept |
| Whether the buffer is empty. More... | |
| bool | isFull () const noexcept |
| Whether the buffer is full. More... | |
| T | read () noexcept |
| Remove a value from the fifo buffer. More... | |
| void | write (const T &oT) noexcept |
| Add a value to the buffer. More... | |
| void | write (T &&oT) noexcept |
| Add a value to the buffer. More... | |
| int32_t | size () const noexcept |
| Total number of buffered values. More... | |
| const T & | peekValue (int32_t nIdx) const noexcept |
| Peek the buffered value. More... | |
| T & | peekValue (int32_t nIdx) noexcept |
| Peek the buffered value. More... | |
|
noexcept |
Constructor.
| nSize | The capacity of the buffer. Must be positive. |
|
inlinenoexcept |
The (fixed) capacity of the buffer.
|
inlinenoexcept |
Clears the buffer.
Removes all its values.
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
Remove a value from the fifo buffer.
The buffer must not be empty.
|
inlinenoexcept |
Total number of buffered values.
|
noexcept |
Add a value to the buffer.
The buffer must not be full.
| oT | The value to add. |
|
noexcept |
Add a value to the buffer.
The buffer must not be full.
| oT | The value to add. |
1.8.13