| 33 | } |
| 34 | template <bool FIRST = false> |
| 35 | void InsertScan(uint64_t value) { |
| 36 | if (!FIRST) { index++; } |
| 37 | buffer[index % RING_SIZE] = value; |
| 38 | } |
| 39 | inline const uint64_t& Top() const { return buffer[index % RING_SIZE]; } |
| 40 | //! Get the index where values that produce this 'key' are stored |
| 41 | inline const uint64_t& IndexOf(const uint64_t& key) const { return indices[key]; } |