Mercurial > hg > svcore
comparison base/EventSeries.h @ 1638:b57a75aa5ae3 single-point
Add getEventsStartingWithin
author | Chris Cannam |
---|---|
date | Wed, 13 Mar 2019 10:55:02 +0000 |
parents | e8e51f3ca120 |
children | e7f557789f99 |
comparison
equal
deleted
inserted
replaced
1637:e8099be64726 | 1638:b57a75aa5ae3 |
---|---|
93 */ | 93 */ |
94 EventVector getEventsWithin(sv_frame_t frame, | 94 EventVector getEventsWithin(sv_frame_t frame, |
95 sv_frame_t duration) const; | 95 sv_frame_t duration) const; |
96 | 96 |
97 /** | 97 /** |
98 * Retrieve all events starting within the range in frames defined | |
99 * by the given frame f and duration d. | |
100 * | |
101 * - An event without duration starts within the range if its own | |
102 * frame is greater than or equal to f and less than f + d. | |
103 * | |
104 * - An event with duration starts within the range if its start | |
105 * frame is greater than or equal to f. | |
106 */ | |
107 EventVector getEventsStartingWithin(sv_frame_t frame, | |
108 sv_frame_t duration) const; | |
109 | |
110 /** | |
98 * Retrieve all events that cover the given frame. An event without | 111 * Retrieve all events that cover the given frame. An event without |
99 * duration covers a frame if its own frame is equal to it. An event | 112 * duration covers a frame if its own frame is equal to it. An event |
100 * with duration covers a frame if its start frame is less than or | 113 * with duration covers a frame if its start frame is less than or |
101 * equal to it and its end frame (start + duration) is greater | 114 * equal to it and its end frame (start + duration) is greater |
102 * than it. | 115 * than it. |