From c6741f06feeb604b7eb0835300549dc81157a419 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Fri, 14 Jan 2011 10:33:12 -0500 Subject: [PATCH] Put operators on the other Segments. --- src/TimingData.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/TimingData.h b/src/TimingData.h index b4348475d1..70630bb2bb 100644 --- a/src/TimingData.h +++ b/src/TimingData.h @@ -27,6 +27,15 @@ struct BPMSegment } bool operator!=( const BPMSegment &other ) const { return !operator==(other); } bool operator<( const BPMSegment &other ) const { return m_iStartRow < other.m_iStartRow; } + bool operator<=( const BPMSegment &other ) const + { + return ( operator<(other) || operator==(other) ); + } + bool operator>( const BPMSegment &other ) const { return m_iStartRow > other.m_iStartRow; } + bool operator>=( const BPMSegment &other ) const + { + return ( operator>(other) || operator==(other) ); + } }; struct StopSegment @@ -101,6 +110,15 @@ struct TimeSignatureSegment } bool operator!=( const TimeSignatureSegment &other ) const { return !operator==(other); } bool operator<( const TimeSignatureSegment &other ) const { return m_iStartRow < other.m_iStartRow; } + bool operator<= (const TimeSignatureSegment &other ) const + { + return ( operator<(other) || operator==(other) ); + } + bool operator>( const TimeSignatureSegment &other ) const { return m_iStartRow > other.m_iStartRow; } + bool operator>= (const TimeSignatureSegment &other ) const + { + return ( operator>(other) || operator==(other) ); + } }; /* A warp segment is used to replicate the effects of Negative BPMs without @@ -122,6 +140,15 @@ struct WarpSegment } bool operator!=( const WarpSegment &other ) const { return !operator==(other); } bool operator<( const WarpSegment &other ) const { return m_iStartRow < other.m_iStartRow; } + bool operator<=( const WarpSegment &other ) const + { + return ( operator<(other) || operator==(other) ); + } + bool operator>( const WarpSegment &other ) const { return m_iStartRow > other.m_iStartRow; } + bool operator>=( const WarpSegment &other ) const + { + return ( operator>(other) || operator==(other) ); + } }; class TimingData