| 22 | }; |
| 23 | |
| 24 | struct HashKey |
| 25 | { |
| 26 | HashKey() = default; |
| 27 | HashKey(int i, int j, int k) |
| 28 | : k{i, j, k} |
| 29 | { |
| 30 | } |
| 31 | |
| 32 | HashKey& operator=(HashKey const& other) |
| 33 | { |
| 34 | k[0] = other.k[0]; |
| 35 | k[1] = other.k[1]; |
| 36 | k[2] = other.k[2]; |
| 37 | return *this; |
| 38 | } |
| 39 | |
| 40 | bool operator==(HashKey const& other) const |
| 41 | { |
| 42 | return |
| 43 | k[0] == other.k[0] && |
| 44 | k[1] == other.k[1] && |
| 45 | k[2] == other.k[2]; |
| 46 | } |
| 47 | |
| 48 | bool operator!=(HashKey const& other) const |
| 49 | { |
| 50 | return !(*this == other); |
| 51 | } |
| 52 | |
| 53 | int k[3]; |
| 54 | }; |
| 55 | |
| 56 | struct HashEntry |
| 57 | { |
nothing calls this directly
no outgoing calls
no test coverage detected