MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / reset

Method reset

Engine/source/console/consoleInternal.cpp:401–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401void Dictionary::reset()
402{
403 if( hashTable && hashTable->owner != this )
404 {
405 hashTable = NULL;
406 return;
407 }
408
409 for( U32 i = 0; i < ownHashTable.size; ++ i )
410 {
411 Entry* walk = ownHashTable.data[i];
412 while( walk )
413 {
414 Entry* temp = walk->nextEntry;
415 destructInPlace( walk );
416 walk = temp;
417 }
418 }
419
420 dMemset( ownHashTable.data, 0, ownHashTable.size * sizeof( Entry* ) );
421 ownHashTable.mChunker.freeBlocks( true );
422
423 ownHashTable.count = 0;
424 hashTable = NULL;
425
426 scopeName = NULL;
427 scopeNamespace = NULL;
428 code = NULL;
429 ip = 0;
430}
431
432
433const char *Dictionary::tabComplete(const char *prevText, S32 baseLen, bool fForward)

Callers 1

popFrameMethod · 0.45

Calls 3

destructInPlaceFunction · 0.85
dMemsetFunction · 0.50
freeBlocksMethod · 0.45

Tested by

no test coverage detected