diff options
| author | John Hurst <jhurst@cinecert.com> | 2019-12-30 14:03:32 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-30 14:03:32 -0800 |
| commit | 39d533e10e9f5248c557caa0777c8c10ed5d737c (patch) | |
| tree | 6e03793692f45418ea89c55edcb95ce89d9aad5b /src/KM_util.h | |
| parent | 5dd260660cfa14ece62365139962dfb4cbbafb10 (diff) | |
| parent | a67f55782d4758355190fe3f14ac6159b9d79e1e (diff) | |
Merge branch 'master' into htj2c
Diffstat (limited to 'src/KM_util.h')
| -rwxr-xr-x | src/KM_util.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/KM_util.h b/src/KM_util.h index 8a71ef7..f6a8935 100755 --- a/src/KM_util.h +++ b/src/KM_util.h @@ -334,6 +334,18 @@ namespace Kumu return false; } + inline bool operator>(const Identifier& rhs) const { + ui32_t test_size = xmin(rhs.Size(), SIZE); + + for ( ui32_t i = 0; i < test_size; i++ ) + { + if ( m_Value[i] != rhs.m_Value[i] ) + return m_Value[i] > rhs.m_Value[i]; + } + + return false; + } + inline bool operator==(const Identifier& rhs) const { if ( rhs.Size() != SIZE ) return false; return ( memcmp(m_Value, rhs.m_Value, SIZE) == 0 ); |
