# HG changeset patch # User Chris Cannam # Date 1553096752 0 # Node ID 31b46a5647db249a8df7ea346bca375cee998ec1 # Parent e4084bc60fe8469d2ed5468081710c6b2dd17545 Forward the matching-event functions diff -r e4084bc60fe8 -r 31b46a5647db data/model/NoteModel.h --- a/data/model/NoteModel.h Wed Mar 20 14:58:56 2019 +0000 +++ b/data/model/NoteModel.h Wed Mar 20 15:45:52 2019 +0000 @@ -173,6 +173,13 @@ EventVector getEventsStartingAt(sv_frame_t f) const { return m_events.getEventsStartingAt(f); } + bool getNearestEventMatching(sv_frame_t startSearchAt, + std::function predicate, + EventSeries::Direction direction, + Event &found) const { + return m_events.getNearestEventMatching + (startSearchAt, predicate, direction, found); + } /** * Editing methods. diff -r e4084bc60fe8 -r 31b46a5647db data/model/RegionModel.h --- a/data/model/RegionModel.h Wed Mar 20 14:58:56 2019 +0000 +++ b/data/model/RegionModel.h Wed Mar 20 15:45:52 2019 +0000 @@ -150,6 +150,13 @@ EventVector getEventsStartingAt(sv_frame_t f) const { return m_events.getEventsStartingAt(f); } + bool getNearestEventMatching(sv_frame_t startSearchAt, + std::function predicate, + EventSeries::Direction direction, + Event &found) const { + return m_events.getNearestEventMatching + (startSearchAt, predicate, direction, found); + } /** * Editing methods.