MCPcopy Create free account
hub / github.com/Norbyte/ositools / FindByValue

Method FindByValue

OsiInterface/DivBaseTypes.h:161–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected