Mercurial > hg > svcore
diff data/model/SparseTimeValueModel.h @ 1656:e4084bc60fe8 single-point
Test & fixes for getEventsStartingAt
author | Chris Cannam |
---|---|
date | Wed, 20 Mar 2019 14:58:56 +0000 |
parents | 0cfb882155a6 |
children | 5b7b01da430a |
line wrap: on
line diff
--- a/data/model/SparseTimeValueModel.h Wed Mar 20 11:14:36 2019 +0000 +++ b/data/model/SparseTimeValueModel.h Wed Mar 20 14:58:56 2019 +0000 @@ -143,6 +143,9 @@ EventVector getEventsSpanning(sv_frame_t f, sv_frame_t duration) const { return m_events.getEventsSpanning(f, duration); } + EventVector getEventsCovering(sv_frame_t f) const { + return m_events.getEventsCovering(f); + } EventVector getEventsWithin(sv_frame_t f, sv_frame_t duration, int overspill = 0) const { return m_events.getEventsWithin(f, duration, overspill); @@ -150,8 +153,8 @@ EventVector getEventsStartingWithin(sv_frame_t f, sv_frame_t duration) const { return m_events.getEventsStartingWithin(f, duration); } - EventVector getEventsCovering(sv_frame_t f) const { - return m_events.getEventsCovering(f); + EventVector getEventsStartingAt(sv_frame_t f) const { + return m_events.getEventsStartingAt(f); } bool getNearestEventMatching(sv_frame_t startSearchAt, std::function<bool(Event)> predicate,