comparison data/model/NoteModel.h @ 1611:b2f32c554199 single-point

Pull out the Point class, plus start testing NoteModel, plus actually add the tests...
author Chris Cannam
date Tue, 05 Mar 2019 15:15:11 +0000
parents c01cbe41aeb5
children 23a29e5dc0e9
comparison
equal deleted inserted replaced
1610:7db29268cf4c 1611:b2f32c554199
89 bool operator()(const Note &p1, 89 bool operator()(const Note &p1,
90 const Note &p2) const { 90 const Note &p2) const {
91 return p1.frame < p2.frame; 91 return p1.frame < p2.frame;
92 } 92 }
93 }; 93 };
94
95 bool operator==(const Note &other) const {
96 // ew
97 Comparator c;
98 return !(c(*this, other) || c(other, *this));
99 }
94 }; 100 };
95 101
96 102
97 class NoteModel : public IntervalModel<Note>, public NoteExportable 103 class NoteModel : public IntervalModel<Note>, public NoteExportable
98 { 104 {