Given:
class Buf {
// has fixed buffer size, forming a cyclic buffer tor t->v pairs
void add(time_type t, value_type v); // adds value v at time t, overwriting the oldest buffered value
value_type get(time_type t); // returns the value at time t1 for t1 <= t < t2 (for t1 and t2 datapoints in the buffer)
...
};
What would you call this class?
I admit it is somehow subjective, but it shouldn't lead to or require extended discussion of the answers, so I hope it's OK. :-)
So far I'm thinking of RecentValueBuffer
since the class maps (recent) timestamps to values corresponding to these timestamps. I'm a bit unsure about "recent" because that seems to imply a short time-range/number of samples.