Mercurial > hg > svcore
comparison data/model/SparseOneDimensionalModel.h @ 1609:560453546749 single-point
Start some sparse model tests
author | Chris Cannam |
---|---|
date | Tue, 05 Mar 2019 13:21:55 +0000 |
parents | ad5f892c0c4d |
children | 24dc8cb42755 |
comparison
equal
deleted
inserted
replaced
1608:0e0947896fd3 | 1609:560453546749 |
---|---|
65 bool operator()(const OneDimensionalPoint &p1, | 65 bool operator()(const OneDimensionalPoint &p1, |
66 const OneDimensionalPoint &p2) const { | 66 const OneDimensionalPoint &p2) const { |
67 return p1.frame < p2.frame; | 67 return p1.frame < p2.frame; |
68 } | 68 } |
69 }; | 69 }; |
70 | |
71 bool operator==(const OneDimensionalPoint &p) const { | |
72 return (frame == p.frame && label == p.label); | |
73 } | |
70 }; | 74 }; |
71 | 75 |
72 | 76 |
73 class SparseOneDimensionalModel : public SparseModel<OneDimensionalPoint>, | 77 class SparseOneDimensionalModel : public SparseModel<OneDimensionalPoint>, |
74 public NoteExportable | 78 public NoteExportable |