Mercurial > hg > svcore
comparison base/EventSeries.h @ 1654:26aa42fd60e9 single-point
Add overspill to events-within search
author | Chris Cannam |
---|---|
date | Wed, 20 Mar 2019 11:12:54 +0000 |
parents | eaad70939848 |
children | e4084bc60fe8 |
comparison
equal
deleted
inserted
replaced
1653:eaad70939848 | 1654:26aa42fd60e9 |
---|---|
100 * frame is greater than or equal to f and less than f + d. | 100 * frame is greater than or equal to f and less than f + d. |
101 * | 101 * |
102 * - An event with duration is within the range if its start frame | 102 * - An event with duration is within the range if its start frame |
103 * is greater than or equal to f and its start frame plus its | 103 * is greater than or equal to f and its start frame plus its |
104 * duration is less than or equal to f + d. | 104 * duration is less than or equal to f + d. |
105 * | |
106 * If overspill is greater than zero, also include that number of | |
107 * additional events (where they exist) both before and after the | |
108 * edges of the range. | |
105 */ | 109 */ |
106 EventVector getEventsWithin(sv_frame_t frame, | 110 EventVector getEventsWithin(sv_frame_t frame, |
107 sv_frame_t duration) const; | 111 sv_frame_t duration, |
112 int overspill = 0) const; | |
108 | 113 |
109 /** | 114 /** |
110 * Retrieve all events starting within the range in frames defined | 115 * Retrieve all events starting within the range in frames defined |
111 * by the given frame f and duration d. | 116 * by the given frame f and duration d. |
112 * | 117 * |