MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / lookup

Method lookup

Engine/source/console/consoleInternal.cpp:283–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283Dictionary::Entry *Dictionary::lookup(StringTableEntry name)
284{
285 Entry *walk = hashTable->data[HashPointer(name) % hashTable->size];
286 while (walk)
287 {
288 if (walk->name == name)
289 return walk;
290 else
291 walk = walk->nextEntry;
292 }
293
294 return NULL;
295}
296
297Dictionary::Entry *Dictionary::add(StringTableEntry name)
298{

Callers

nothing calls this directly

Calls 1

HashPointerFunction · 0.85

Tested by

no test coverage detected