Berthold Stoeger 62303a015a core: use std::vector<> to store divecomputer samples
This is a hairy one, because the sample code is rather tricky.

There was a pattern of looping through pairs of adjacent samples,
for interpolation purposes. Add an range adapter to generalize
such loops.

Removes the finish_sample() function: The code would call
prepare_sample() to start parsing of samples and then
finish_sample() to actuall add it. I.e. a kind of commit().

Since, with one exception, all users of prepare_sample()
called finish_sample() in all code paths, we might just add
the sample in the first place. The exception was sample_end()
in parse.cpp. This brings a small change: samples are now
added, even if they could only be parsed partially. I doubt
that this makes any difference, since it will only happen
for broken divelogs anyway.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-06-10 13:05:58 +02:00
..
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2017-04-29 13:32:55 -07:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-05-31 18:55:47 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:56 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-01-17 14:23:19 -08:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:58 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-09 11:20:37 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-03-10 11:01:42 +13:00
2024-06-09 11:20:37 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:58 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00
2024-06-10 13:05:57 +02:00