| 275 | return !(*this == tc); |
| 276 | } |
| 277 | bool operator< (const TimeCode& tc) const |
| 278 | { |
| 279 | uint64_t Total1 = ((uint64_t)GetHours()) << 16 |
| 280 | | ((uint64_t)GetMinutes()) << 8 |
| 281 | | ((uint64_t)GetSeconds()); |
| 282 | uint64_t Total2 = ((uint64_t)tc.GetHours()) << 16 |
| 283 | | ((uint64_t)tc.GetMinutes()) << 8 |
| 284 | | ((uint64_t)tc.GetSeconds()); |
| 285 | if (Total1 == Total2) |
| 286 | { |
| 287 | if (GetFramesMax() == tc.GetFramesMax()) |
| 288 | return GetFrames() < tc.GetFrames(); |
| 289 | uint64_t Mix1 = ((int64_t)GetFrames()) * (((int64_t)tc.GetFramesMax()) + 1); |
| 290 | uint64_t Mix2 = ((int64_t)tc.GetFrames()) * (((int64_t)GetFramesMax()) + 1); |
| 291 | return Mix1 < Mix2; |
| 292 | } |
| 293 | return Total1 < Total2; |
| 294 | } |
| 295 | bool operator> (const TimeCode& tc) const |
| 296 | { |
| 297 | uint64_t Total1 = ((uint64_t)GetHours()) << 16 |
nothing calls this directly
no test coverage detected