fsh::stk
fantastic spatial holophonic synthesis toolkit
Loading...
Searching...
No Matches
fsh::util::IndexedVector Class Reference

Primitive ring buffer class. More...

#include <IndexedVector.h>

Public Member Functions

void resize (size_t newSize)
 Resize the underlying vector.
 
auto get () const -> float
 Get the element at the current index.
 
void add (float val)
 Add a value to the element at the current index.
 
void set (float val)
 Set the element at the current index.
 
void incrementIndex ()
 Increment the index with wraparound.
 
void clear ()
 Set all elements to zero.
 

Detailed Description

Primitive ring buffer class.

Can be used as a simple delay line or FIFO queue.


The documentation for this class was generated from the following files: