| 14 | #include <tuple> |
| 15 | |
| 16 | struct TFeaturePosition { |
| 17 | int Index = -1; |
| 18 | int FlatIndex = -1; |
| 19 | public: |
| 20 | TFeaturePosition() = default; |
| 21 | |
| 22 | TFeaturePosition(int index, int flatIndex) |
| 23 | : Index(index) |
| 24 | , FlatIndex(flatIndex) |
| 25 | {} |
| 26 | |
| 27 | bool operator==(const TFeaturePosition& other) const { |
| 28 | return std::tie(Index, FlatIndex) == |
| 29 | std::tie(other.Index, other.FlatIndex); |
| 30 | } |
| 31 | bool operator!=(const TFeaturePosition& other) const { |
| 32 | return !(*this == other); |
| 33 | } |
| 34 | |
| 35 | Y_SAVELOAD_DEFINE(Index, FlatIndex); |
| 36 | }; |
| 37 | |
| 38 | struct TFeatureBase { |
| 39 | public: |
no outgoing calls
no test coverage detected