File indexing completed on 2026-07-26 08:21:57
0001
0002
0003
0004
0005
0006
0007
0008 #pragma once
0009
0010 namespace traccc::edm {
0011
0012 template <typename BASE>
0013 template <typename T>
0014 TRACCC_HOST_DEVICE bool seed<BASE>::operator==(const seed<T>& other) const {
0015 return ((top_index() == other.top_index()) &&
0016 (middle_index() == other.middle_index()) &&
0017 (bottom_index() == other.bottom_index()));
0018 }
0019
0020 template <typename BASE>
0021 template <typename T>
0022 TRACCC_HOST_DEVICE std::strong_ordering seed<BASE>::operator<=>(
0023 const seed<T>& other) const {
0024 if (top_index() != other.top_index()) {
0025 return (top_index() <=> other.top_index());
0026 } else if (middle_index() != other.middle_index()) {
0027 return (middle_index() <=> other.middle_index());
0028 } else {
0029 return (bottom_index() <=> other.bottom_index());
0030 }
0031 }
0032
0033 }