TI-66: Move with :adjust leaves overlapping intervals.

- Implement 'overwrite' overlap resolution strategy
- Add convenience methods to Range
- also fixes TI-85: :adjust creates overlapping interval
This commit is contained in:
Thomas Lauf 2017-12-14 21:49:34 +01:00
parent 963d4ac7ae
commit 48ed980c76
4 changed files with 70 additions and 54 deletions

View file

@ -45,6 +45,9 @@ public:
bool is_open () const;
bool is_started () const;
bool is_ended () const;
bool is_empty () const;
bool contains (const Datetime&) const;
bool overlap (const Range&) const;
bool encloses (const Range&) const;