| 159 | } |
| 160 | |
| 161 | FixedString * FindByValue(ValueType const & value) const |
| 162 | { |
| 163 | for (uint32_t bucket = 0; bucket < HashSize; bucket++) { |
| 164 | Node * item = HashTable[bucket]; |
| 165 | while (item != nullptr) { |
| 166 | if (value == item->Value) { |
| 167 | return &item->Key; |
| 168 | } |
| 169 | |
| 170 | item = item->Next; |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | return nullptr; |
| 175 | } |
| 176 | |
| 177 | template <class Visitor> |
| 178 | void Iterate(Visitor visitor) |
no outgoing calls
no test coverage detected