comparison base/Event.h @ 1630:73bda079567a single-point

Add operator!=
author Chris Cannam
date Tue, 12 Mar 2019 14:11:06 +0000
parents abc188026a48
children 687a2453cc15
comparison
equal deleted inserted replaced
1629:abc188026a48 1630:73bda079567a
192 if (m_label != p.m_label) return false; 192 if (m_label != p.m_label) return false;
193 193
194 return true; 194 return true;
195 } 195 }
196 196
197 bool operator!=(const Event &p) const {
198 return !operator==(p);
199 }
200
197 bool operator<(const Event &p) const { 201 bool operator<(const Event &p) const {
198 202
199 if (m_frame != p.m_frame) { 203 if (m_frame != p.m_frame) {
200 return m_frame < p.m_frame; 204 return m_frame < p.m_frame;
201 } 205 }