36 void resize(
size_t newSize);
39 auto get()
const -> float;
55 std::vector<float> data;
Primitive ring buffer class.
Definition IndexedVector.h:33
void incrementIndex()
Increment the index with wraparound.
Definition IndexedVector.cpp:65
void add(float val)
Add a value to the element at the current index.
Definition IndexedVector.cpp:43
void resize(size_t newSize)
Resize the underlying vector.
Definition IndexedVector.cpp:27
auto get() const -> float
Get the element at the current index.
Definition IndexedVector.cpp:33
void clear()
Set all elements to zero.
Definition IndexedVector.cpp:70
void set(float val)
Set the element at the current index.
Definition IndexedVector.cpp:54