tclHash.c File Reference

#include "tclInt.h"

Go to the source code of this file.

Defines

#define REBUILD_MULTIPLIER   3
#define RANDOM_INDEX(tablePtr, i)   (((((long) (i))*1103515245) >> (tablePtr)->downShift) & (tablePtr)->mask)
#define NUM_COUNTERS   10

Functions

void Tcl_InitHashTable (register Tcl_HashTable *tablePtr, int keyType)
void Tcl_InitCustomHashTable (register Tcl_HashTable *tablePtr, int keyType, Tcl_HashKeyType *typePtr)
Tcl_HashEntryTcl_FindHashEntry (Tcl_HashTable *tablePtr, const char *key)
Tcl_HashEntryTcl_CreateHashEntry (Tcl_HashTable *tablePtr, const char *key, int *newPtr)
void Tcl_DeleteHashEntry (Tcl_HashEntry *entryPtr)
void Tcl_DeleteHashTable (register Tcl_HashTable *tablePtr)
Tcl_HashEntryTcl_FirstHashEntry (Tcl_HashTable *tablePtr, Tcl_HashSearch *searchPtr)
Tcl_HashEntryTcl_NextHashEntry (register Tcl_HashSearch *searchPtr)
const char * Tcl_HashStats (Tcl_HashTable *tablePtr)

Variables

Tcl_HashKeyType tclArrayHashKeyType
Tcl_HashKeyType tclOneWordHashKeyType
Tcl_HashKeyType tclStringHashKeyType


Define Documentation

#define NUM_COUNTERS   10

Referenced by Tcl_HashStats().

#define RANDOM_INDEX ( tablePtr,
 )     (((((long) (i))*1103515245) >> (tablePtr)->downShift) & (tablePtr)->mask)

Definition at line 39 of file tclHash.c.

Referenced by Tcl_CreateHashEntry(), and Tcl_DeleteHashEntry().

#define REBUILD_MULTIPLIER   3

Definition at line 30 of file tclHash.c.

Referenced by Tcl_InitCustomHashTable(), and TclInitLiteralTable().


Function Documentation

Tcl_HashEntry* Tcl_FindHashEntry ( Tcl_HashTable tablePtr,
const char *  key 
)

Definition at line 229 of file tclHash.c.

References Tcl_CreateHashEntry.

void Tcl_InitCustomHashTable ( register Tcl_HashTable tablePtr,
int  keyType,
Tcl_HashKeyType typePtr 
)

void Tcl_InitHashTable ( register Tcl_HashTable tablePtr,
int  keyType 
)

Definition at line 126 of file tclHash.c.

References Tcl_InitCustomHashTable().

Tcl_HashEntry* Tcl_NextHashEntry ( register Tcl_HashSearch searchPtr  ) 


Variable Documentation

Initial value:

 {
    TCL_HASH_KEY_TYPE_VERSION,          
    TCL_HASH_KEY_RANDOMIZE_HASH,        
    HashArrayKey,                       
    CompareArrayKeys,                   
    AllocArrayEntry,                    
    NULL                                
}

Definition at line 79 of file tclHash.c.

Referenced by Tcl_CreateHashEntry(), Tcl_DeleteHashEntry(), Tcl_DeleteHashTable(), and Tcl_HashStats().

Initial value:

 {
    TCL_HASH_KEY_TYPE_VERSION,          
    0,                                  
    NULL,               
    NULL,       
    NULL,       
    NULL                
}

Definition at line 88 of file tclHash.c.

Referenced by Tcl_CreateHashEntry(), Tcl_DeleteHashEntry(), Tcl_DeleteHashTable(), and Tcl_HashStats().

Initial value:

 {
    TCL_HASH_KEY_TYPE_VERSION,          
    0,                                  
    HashStringKey,                      
    CompareStringKeys,                  
    AllocStringEntry,                   
    NULL                                
}

Definition at line 97 of file tclHash.c.

Referenced by Tcl_CreateHashEntry(), Tcl_DeleteHashEntry(), Tcl_DeleteHashTable(), and Tcl_HashStats().



Generated on Wed Mar 12 12:18:30 2008 by  doxygen 1.5.1