pycore_hashtable.h File Reference

Classes

struct  _Py_slist_item_s
 
struct  _Py_slist_t
 
struct  _Py_hashtable_entry_t
 
struct  _Py_hashtable_allocator_t
 
struct  _Py_hashtable_t
 

Macros

#define _Py_SLIST_ITEM_NEXT(ITEM)
 
#define _Py_SLIST_HEAD(SLIST)
 

Typedefs

typedef struct _Py_slist_item_s _Py_slist_item_t
 
typedef struct _Py_hashtable_t _Py_hashtable_t
 
typedef Py_uhash_t(* _Py_hashtable_hash_func) (const void *key)
 
typedef int(* _Py_hashtable_compare_func) (const void *key1, const void *key2)
 
typedef void(* _Py_hashtable_destroy_func) (void *key)
 
typedef _Py_hashtable_entry_t *(* _Py_hashtable_get_entry_func) (_Py_hashtable_t *ht, const void *key)
 
typedef int(* _Py_hashtable_foreach_func) (_Py_hashtable_t *ht, const void *key, const void *value, void *user_data)
 

Functions

 PyAPI_FUNC (Py_uhash_t) _Py_hashtable_hash_ptr(const void *key)
 
 PyAPI_FUNC (int) _Py_hashtable_compare_direct(const void *key1
 
 PyAPI_FUNC (_Py_hashtable_t *) _Py_hashtable_new(_Py_hashtable_hash_func hash_func
 
 PyAPI_FUNC (void) _Py_hashtable_destroy(_Py_hashtable_t *ht)
 
static _Py_hashtable_entry_t_Py_hashtable_get_entry (_Py_hashtable_t *ht, const void *key)
 
 PyAPI_FUNC (void *) _Py_hashtable_get(_Py_hashtable_t *ht
 

Variables

const void * key2
 
_Py_hashtable_compare_func compare_func
 
_Py_hashtable_compare_func _Py_hashtable_destroy_func key_destroy_func
 
_Py_hashtable_compare_func _Py_hashtable_destroy_func _Py_hashtable_destroy_func value_destroy_func
 
_Py_hashtable_compare_func _Py_hashtable_destroy_func _Py_hashtable_destroy_func _Py_hashtable_allocator_tallocator
 
_Py_hashtable_foreach_func func
 
_Py_hashtable_foreach_func void * user_data
 
const void * key
 
const void void * value
 

Macro Definition Documentation

◆ _Py_SLIST_ITEM_NEXT

#define _Py_SLIST_ITEM_NEXT (   ITEM)

◆ _Py_SLIST_HEAD

#define _Py_SLIST_HEAD (   SLIST)

Typedef Documentation

◆ _Py_slist_item_t

◆ _Py_hashtable_t

◆ _Py_hashtable_hash_func

typedef Py_uhash_t(* _Py_hashtable_hash_func) (const void *key)

◆ _Py_hashtable_compare_func

typedef int(* _Py_hashtable_compare_func) (const void *key1, const void *key2)

◆ _Py_hashtable_destroy_func

typedef void(* _Py_hashtable_destroy_func) (void *key)

◆ _Py_hashtable_get_entry_func

typedef _Py_hashtable_entry_t*(* _Py_hashtable_get_entry_func) (_Py_hashtable_t *ht, const void *key)

◆ _Py_hashtable_foreach_func

typedef int(* _Py_hashtable_foreach_func) (_Py_hashtable_t *ht, const void *key, const void *value, void *user_data)

Function Documentation

◆ PyAPI_FUNC() [1/5]

PyAPI_FUNC ( Py_uhash_t  ) const

◆ PyAPI_FUNC() [2/5]

PyAPI_FUNC ( int  ) const

◆ PyAPI_FUNC() [3/5]

PyAPI_FUNC ( _Py_hashtable_t )

◆ PyAPI_FUNC() [4/5]

PyAPI_FUNC ( void  )

◆ _Py_hashtable_get_entry()

static _Py_hashtable_entry_t* _Py_hashtable_get_entry ( _Py_hashtable_t ht,
const void *  key 
)
static

◆ PyAPI_FUNC() [5/5]

PyAPI_FUNC ( void *  )

Variable Documentation

◆ key2

const void* key2

◆ compare_func

◆ key_destroy_func

◆ value_destroy_func

◆ allocator

◆ func

◆ user_data

_Py_hashtable_foreach_func void* user_data

◆ key

const void* key

◆ value

const void void* value