Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

hashTable.h: hash table routines
[platform independant portions of code]


Typedefs

typedef uint32(* HashFunction )(void *key, uint32 keySize)
typedef _HashTable * HashTable

Functions

ErrorCode hashTableCreate (HashTable *table, uint32 size, HashFunction hashFunction)
ErrorCode hashTableAdd (HashTable table, void *key, uint32 keySize, Pointer object)
ErrorCode hashTableAddString (HashTable table, String key, Pointer object)
ErrorCode hashTableGet (HashTable table, void *key, uint32 keySize, Pointer *object)
ErrorCode hashTableGetString (HashTable table, String key, Pointer *object)
ErrorCode hashTableDestroy (HashTable *table)

Variables

const uint32 HashTableDefaultSize = 97

Detailed Description

Defines interfaces for working with hash tables

Typedef Documentation

typedef uint32(* HashFunction)(void *key, uint32 keySize)
 

Definition at line 29 of file hashTable.h.

typedef struct _HashTable* HashTable
 

Definition at line 31 of file hashTable.h.


Function Documentation

ErrorCode hashTableAdd HashTable  table,
void *  key,
uint32  keySize,
Pointer  object
 

ErrorCode hashTableAddString HashTable  table,
String  key,
Pointer  object
 

ErrorCode hashTableCreate HashTable table,
uint32  size,
HashFunction  hashFunction
 

ErrorCode hashTableDestroy HashTable table  ) 
 

ErrorCode hashTableGet HashTable  table,
void *  key,
uint32  keySize,
Pointer object
 

ErrorCode hashTableGetString HashTable  table,
String  key,
Pointer object
 


Variable Documentation

const uint32 HashTableDefaultSize = 97
 

The default hash table size (large prime numbers are the best sizes when using the modulus method of clamping hash values into table range)

Definition at line 27 of file hashTable.h.


Generated on Wed Mar 22 20:36:34 2006 for ndk by  doxygen 1.4.4