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; } ////////////////////////////////////////////////////////////////////////////////