| 47 | { |
| 48 | public: |
| 49 | GridKey(int i, int j, int k) |
| 50 | { |
| 51 | assert(i < (std::numeric_limits<uint8_t>::max)()); |
| 52 | assert(j < (std::numeric_limits<uint8_t>::max)()); |
| 53 | assert(k < (std::numeric_limits<uint8_t>::max)()); |
| 54 | m_key = (i << (2 * CHAR_BIT)) | (j << CHAR_BIT) | k; |
| 55 | } |
| 56 | |
| 57 | int i() const |
| 58 | { return (m_key >> (2 * CHAR_BIT)); } |
nothing calls this directly
no outgoing calls
no test coverage detected