#include <stddef.h>
Go to the source code of this file.
#define __OSL_HASH_TABLE_C |
CkHashtable_c CkCreateHashtable_int |
( |
int |
objBytes, |
|
|
int |
initSize |
|
) |
| |
Definition at line 421 of file hash_table.cpp.
423 int objStart=2*
sizeof(int);
424 CkHashtableLayout layout(
sizeof(
int),
sizeof(
int),
425 objStart,objBytes,objStart+objBytes);
427 CkHashFunction_int,CkHashCompare_int);
CkHashtable_c CkCreateHashtable_string |
( |
int |
objBytes, |
|
|
int |
initSize |
|
) |
| |
Definition at line 430 of file hash_table.cpp.
References CkHashCompare_string(), and CkHashFunction_string().
432 int objStart=2*
sizeof(
char *);
433 CkHashtableLayout layout(
sizeof(
char *),
sizeof(
char *),
434 objStart,objBytes,objStart+objBytes);
int CkHashCompare_string(const void *key1, const void *key2, size_t keyLen)
CkHashCode CkHashFunction_string(const void *keyData, size_t keyLen)
Definition at line 449 of file hash_table.cpp.
451 return ((CkHashtable *)h)->get(fromKey);
Definition at line 443 of file hash_table.cpp.
445 return ((CkHashtable *)h)->put(atKey);
void CkHashtableRemove |
( |
CkHashtable_c |
h, |
|
|
const void * |
doomedKey |
|
) |
| |
Definition at line 454 of file hash_table.cpp.
456 ((CkHashtable *)h)->remove(doomedKey);