Ref T397, sort by timestamp, then adjust offset + function which ignores overlapping situations

This commit is contained in:
Klaus Basan
2018-10-18 17:43:24 +02:00
parent c010149686
commit 0b74493eeb
2 changed files with 45 additions and 20 deletions

View File

@@ -206,6 +206,9 @@ namespace BlackMisc
//! \remark adjust offset to average offset of two adjacent elements so adjusted values are sorted
void push_frontKeepLatestFirstAdjustOffset(const OBJ &value, bool replaceSameTimestamp = true, int maxElements = -1);
//! Add value, but ignore overlapping (past) values
void push_frontKeepLatestFirstIgnoreOverlapping(const OBJ &value, bool replaceSameTimestamp = true, int maxElements = -1);
//! Prefill with elements
void prefillLatestAdjustedFirst(const OBJ &value, int elements, qint64 deltaTimeMs = -1);