PPL Logo

util/ckhashtable.C File Reference

Go to the source code of this file.

Functions

CkHashCode CkHashFunction_default (const void *keyData, size_t keyLen)
CkHashCode CkHashFunction_string (const void *keyData, size_t keyLen)
int CkHashCompare_default (const void *key1, const void *key2, size_t keyLen)
int CkHashCompare_string (const void *key1, const void *key2, size_t keyLen)
static unsigned int primeLargerThan (unsigned int x)
EXTERN_C_DECL CkHashtable_c CkCreateHashtable_int (int objBytes, int initSize)
EXTERN_C_DECL CkHashtable_c CkCreateHashtable_string (int objBytes, int initSize)
EXTERN_C_DECL CkHashtable_c CkCreateHashtable_pointer (int objBytes, int initSize)
EXTERN_C_DECL void CkDeleteHashtable (CkHashtable_c h)
EXTERN_C_DECL void * CkHashtablePut (CkHashtable_c h, const void *atKey)
EXTERN_C_DECL void * CkHashtableGet (CkHashtable_c h, const void *fromKey)
EXTERN_C_DECL int CkHashtableRemove (CkHashtable_c h, const void *doomedKey)
EXTERN_C_DECL int CkHashtableSize (CkHashtable_c h)
EXTERN_C_DECL CkHashtableIterator_c CkHashtableGetIterator (CkHashtable_c h)
EXTERN_C_DECL void CkHashtableDestroyIterator (CkHashtableIterator_c it)
EXTERN_C_DECL void * CkHashtableIteratorNext (CkHashtableIterator_c it, void **keyRet)
EXTERN_C_DECL void CkHashtableIteratorSeek (CkHashtableIterator_c it, int n)
EXTERN_C_DECL void CkHashtableIteratorSeekStart (CkHashtableIterator_c it)

Variables

static const unsigned int doublingPrimes []


Function Documentation

CkHashCode CkHashFunction_default ( const void *  keyData,
size_t  keyLen 
)

Definition at line 20 of file ckhashtable.C.

References PUP::d.

CkHashCode CkHashFunction_string ( const void *  keyData,
size_t  keyLen 
)

Definition at line 32 of file ckhashtable.C.

References PUP::d.

Referenced by CkCreateHashtable_string().

Here is the caller graph for this function:

int CkHashCompare_default ( const void *  key1,
const void *  key2,
size_t  keyLen 
)

Definition at line 46 of file ckhashtable.C.

References PUP::a, and PUP::b.

int CkHashCompare_string ( const void *  key1,
const void *  key2,
size_t  keyLen 
)

Definition at line 56 of file ckhashtable.C.

References PUP::a, and PUP::b.

Referenced by CkCreateHashtable_string().

Here is the caller graph for this function:

static unsigned int primeLargerThan ( unsigned int  x  )  [static]

Definition at line 359 of file ckhashtable.C.

References doublingPrimes.

EXTERN_C_DECL CkHashtable_c CkCreateHashtable_int ( int  objBytes,
int  initSize 
)

Definition at line 371 of file ckhashtable.C.

References CkHashCompare_int(), CkHashFunction_int(), int, and CkHashtableIterator::layout.

Referenced by GroupIdxArray< dtype >::nonInlineFind().

Here is the call graph for this function:

Here is the caller graph for this function:

EXTERN_C_DECL CkHashtable_c CkCreateHashtable_string ( int  objBytes,
int  initSize 
)

Definition at line 380 of file ckhashtable.C.

References CkHashCompare_string(), CkHashFunction_string(), and CkHashtableIterator::layout.

Referenced by CcsInit().

Here is the call graph for this function:

Here is the caller graph for this function:

EXTERN_C_DECL CkHashtable_c CkCreateHashtable_pointer ( int  objBytes,
int  initSize 
)

Definition at line 389 of file ckhashtable.C.

References CkHashCompare_pointer(), CkHashFunction_pointer(), and CkHashtableIterator::layout.

Referenced by cpd_memory_single_pup().

Here is the call graph for this function:

Here is the caller graph for this function:

EXTERN_C_DECL void CkDeleteHashtable ( CkHashtable_c  h  ) 

Definition at line 397 of file ckhashtable.C.

Referenced by cpd_memory_single_pup(), and GroupIdxArray< dtype >::~GroupIdxArray().

Here is the caller graph for this function:

EXTERN_C_DECL void* CkHashtablePut ( CkHashtable_c  h,
const void *  atKey 
)

Definition at line 402 of file ckhashtable.C.

Referenced by CcsRegisterHandler(), CcsRegisterHandlerFn(), cpd_memory_single_pup(), and GroupIdxArray< dtype >::nonInlineFind().

Here is the caller graph for this function:

EXTERN_C_DECL void* CkHashtableGet ( CkHashtable_c  h,
const void *  fromKey 
)

Definition at line 408 of file ckhashtable.C.

Referenced by CcsGetHandler(), CcsHandleRequest(), CcsSetMergeFn(), cpd_memory_single_pup(), GroupIdxArray< dtype >::nonInlineFind(), and UserToSlot().

Here is the caller graph for this function:

EXTERN_C_DECL int CkHashtableRemove ( CkHashtable_c  h,
const void *  doomedKey 
)

Definition at line 414 of file ckhashtable.C.

Referenced by cpd_memory_single_pup().

Here is the caller graph for this function:

EXTERN_C_DECL int CkHashtableSize ( CkHashtable_c  h  ) 

Definition at line 419 of file ckhashtable.C.

Referenced by cpd_memory_length().

Here is the caller graph for this function:

EXTERN_C_DECL CkHashtableIterator_c CkHashtableGetIterator ( CkHashtable_c  h  ) 

Definition at line 427 of file ckhashtable.C.

References CkHashtableIterator::seekStart().

Referenced by cpd_memory_single_pup().

Here is the call graph for this function:

Here is the caller graph for this function:

EXTERN_C_DECL void CkHashtableDestroyIterator ( CkHashtableIterator_c  it  ) 

Definition at line 433 of file ckhashtable.C.

EXTERN_C_DECL void* CkHashtableIteratorNext ( CkHashtableIterator_c  it,
void **  keyRet 
)

Definition at line 437 of file ckhashtable.C.

Referenced by cpd_memory_single_pup().

Here is the caller graph for this function:

EXTERN_C_DECL void CkHashtableIteratorSeek ( CkHashtableIterator_c  it,
int  n 
)

Definition at line 441 of file ckhashtable.C.

EXTERN_C_DECL void CkHashtableIteratorSeekStart ( CkHashtableIterator_c  it  ) 

Definition at line 445 of file ckhashtable.C.

Referenced by cpd_memory_single_pup().

Here is the caller graph for this function:


Variable Documentation

const unsigned int doublingPrimes[] [static]

Definition at line 295 of file ckhashtable.C.


Generated on Mon Sep 21 08:11:36 2020 for Charm++ by  doxygen 1.5.5