13 #ifndef __SPANNERMAP_H__ 14 #define __SPANNERMAP_H__ 17 #include "thirdparty/intervaltree/IntervalTree.h" 29 mutable IntervalTree<Spanner*>
tree;
30 std::vector< ::Interval<Spanner*> >
results;
34 const std::vector< ::Interval<Spanner*> >&
findContained(
int start,
int stop);
35 const std::vector< ::Interval<Spanner*> >&
findOverlapping(
int start,
int stop);
36 const std::multimap<int, Spanner*>&
map()
const {
return *
this; }
37 std::multimap<int,Spanner*>::const_reverse_iterator
crbegin()
const {
return std::multimap<int, Spanner*>::crbegin(); }
38 std::multimap<int,Spanner*>::const_reverse_iterator
crend()
const {
return std::multimap<int, Spanner*>::crend(); }
39 std::multimap<int,Spanner*>::const_iterator
cbegin()
const {
return std::multimap<int, Spanner*>::cbegin(); }
40 std::multimap<int,Spanner*>::const_iterator
cend()
const {
return std::multimap<int, Spanner*>::cend(); }
43 void clear() { std::multimap<int, Spanner*>::clear(); dirty =
true; }
void setDirty() const
Definition: spannermap.h:45
Virtual base class for slurs, ties, lines etc.
Definition: spanner.h:136
const std::vector< ::Interval< Spanner * > > & findContained(int start, int stop)
Definition: spannermap.cpp:46
std::multimap< int, Spanner * >::const_reverse_iterator crend() const
Definition: spannermap.h:38
bool dirty
Definition: spannermap.h:28
void clear()
Definition: spannermap.h:43
bool removeSpanner(Spanner *s)
Definition: spannermap.cpp:92
SpannerMap()
Definition: spannermap.cpp:22
const std::vector< ::Interval< Spanner * > > & findOverlapping(int start, int stop)
Definition: spannermap.cpp:59
const std::multimap< int, Spanner * > & map() const
Definition: spannermap.h:36
std::multimap< int, Spanner * >::const_iterator cend() const
Definition: spannermap.h:40
void addSpanner(Spanner *s)
Definition: spannermap.cpp:72
std::multimap< int, Spanner * >::const_reverse_iterator crbegin() const
Definition: spannermap.h:37
void dump() const
Definition: spannermap.cpp:110
IntervalTree< Spanner * > tree
Definition: spannermap.h:29
void update() const
Definition: spannermap.cpp:33
Definition: aeolus.cpp:26
Definition: spannermap.h:27
std::multimap< int, Spanner * >::const_iterator cbegin() const
Definition: spannermap.h:39
std::vector< ::Interval< Spanner * > > results
Definition: spannermap.h:30