|
Firmware
|
Public Member Functions | |
| TimestampedList (int num_items) | |
| void | put (const T &new_value) |
| Insert a value into the list, overwrite the oldest entry if full. | |
| void | reset_to_start () |
| Before iterating using get_next(), reset to start. | |
| T * | get_next () |
| Iterate through all active values (not sorted). More... | |
| void | drop_current () |
| Disable the last item that we have gotten. | |
| void | update_current () |
| Update the timestamp of the item we have gotten. | |
| TimestampedList (const TimestampedList &)=delete | |
| TimestampedList | operator= (const TimestampedList &)=delete |
|
inline |
Iterate through all active values (not sorted).
Return nullptr if at end of list.
This is basically a poor man's iterator.
1.8.12