41 return values[map(
point)];
46 return values[mapback(position)];
64 for(
unsigned i=0;
i <
size; ++
i)
73 unsigned map(
unsigned pos)
77 unsigned mapback(
unsigned position)
79 int index = pointer - position -1;
86 values[map(
point)] = value;
ring buffer helper class (template)
datatype operator[](unsigned position)
datatype getValueAt(unsigned point)
void setAllValues(const datatype &value)
datatype getPreviousAt(unsigned position)
RingBuffer(datatype initial_value=datatype())
void pushValue(datatype value)
mathematical vector of arbitrary type and size