From 54f626c14f9d6e1b3fca154d2d02facac4d3d212 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 27 Apr 2016 22:27:24 -0400 Subject: [PATCH] Timeline: Described ::untracked --- src/Timeline.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Timeline.cpp b/src/Timeline.cpp index e71decd0..9098c482 100644 --- a/src/Timeline.cpp +++ b/src/Timeline.cpp @@ -111,12 +111,16 @@ std::vector Timeline::tracked (Rules& rules) const // Untracked time is that which is not excluded, and not filled. Gaps. std::vector Timeline::untracked (Rules& rules) const { - std::vector combined; + std::vector gaps; - // TODO Combine _inclusions and _exclusions to yield a set of collapsed - // unracked intervals. + // Get the set of expanded exclusions that overlap the range defined by the + // timeline. If no range is defined, derive it from the set of all data. + auto exclusions = excluded (rules); - return combined; + // TODO subtract all exclusions + // TODO subtract all inclusions + + return gaps; } ////////////////////////////////////////////////////////////////////////////////