Timeline: Now uses an Interval internally

This commit is contained in:
Paul Beckingham 2016-04-01 22:39:52 -04:00
parent d01994cf0f
commit a9874159fd
2 changed files with 5 additions and 6 deletions

View file

@ -42,21 +42,21 @@
//
// Derived:
//
// |----------| |----------| Tracked
// |-------| |-----| Untracked
// |-----------| |----------------| Tracked
// |-------| |-----| Gaps
//
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
void Timeline::start (const Datetime& when)
{
_start = when;
_range.start (when);
}
////////////////////////////////////////////////////////////////////////////////
void Timeline::end (const Datetime& when)
{
_end = when;
_range.end (when);
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -45,8 +45,7 @@ public:
std::vector <Interval> untracked () const;
private:
Datetime _start {0};
Datetime _end {0};
Interval _range {};
std::vector <Interval> _inclusions {};
std::vector <Exclusion> _exclusions {};
};