Boost logo

Boost Users :

Subject: [Boost-users] sliding window containing n seconds of data
From: Lane (software.research.development_at_[hidden])
Date: 2015-04-21 23:55:22


I'm looking for a way to examine an array of object structures for an
adjustable window of n seconds. My application reads objects at a high rate
(which I'll have to throttle), and I'd then like to put them onto an array.
My thinking is to assign a timer on each object that is initialized to n
seconds and once the timer expires, the object is removed from the array,
but while it's on the array, I'll iterate over the objects looking for the
info I need.

I put this out on the boost list as I suspect boost has the mechanisms to
handle this and someone could suggest a good way of going about it.

Any help much appreciated.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net