diff 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
line wrap: on
line diff
--- a/data/model/NoteModel.h	Tue Mar 05 14:18:37 2019 +0000
+++ b/data/model/NoteModel.h	Tue Mar 05 15:15:11 2019 +0000
@@ -91,6 +91,12 @@
             return p1.frame < p2.frame;
         }
     };
+
+    bool operator==(const Note &other) const {
+        // ew
+        Comparator c;
+        return !(c(*this, other) || c(other, *this));
+    }
 };