#include <simpler_circular_buffer.hpp>
|
| void | reset () __attribute__((always_inline)) |
| | Index / Pointer to the last element of the buffer. More...
|
| |
| void | push_back (const Type datum) __attribute__((flatten)) |
| | Adds a datum to the circular buffer. More...
|
| |
| Type | operator[] (const size_t index) const __attribute__((always_inline)) |
| | Random access operator can be used to retrive the nth element in the buffer at any state of the buffer. More...
|
| |
|
| Type | buffer [MaxSize] = {0} |
| |
| size_t | head = 0 |
| | Fixed Size Buffer. More...
|
| |
| size_t | tail = 0 |
| | Index / Pointer of the first element of the buffer. More...
|
| |
◆ operator[]()
template<typename Type , size_t MaxSize>
Random access operator can be used to retrive the nth element in the buffer at any state of the buffer.
◆ push_back()
template<typename Type , size_t MaxSize>
Adds a datum to the circular buffer.
◆ reset()
template<typename Type , size_t MaxSize>
Index / Pointer to the last element of the buffer.
Resets the buffer (pointers) without clearing the elements.
◆ buffer
template<typename Type , size_t MaxSize>
◆ head
template<typename Type , size_t MaxSize>
◆ tail
template<typename Type , size_t MaxSize>
Index / Pointer of the first element of the buffer.
The documentation for this class was generated from the following file: