Go to the documentation of this file.
11 #include "int_sizes.h"
63 void itable_clear(
struct itable *h,
void (*delete_func)(
void*) );
89 int itable_insert(
struct itable *h, UINT64_T key,
const void *value);
131 int itable_nextkey(
struct itable *h, UINT64_T * key,
void **value);
147 #define ITABLE_ITERATE(table,key,value) itable_firstkey(table); while(itable_nextkey(table,&key,(void**)&value))
void itable_firstkey(struct itable *h)
Begin iteration over all keys.
void itable_delete(struct itable *h)
Delete an integer table.
void itable_clear(struct itable *h, void(*delete_func)(void *))
Remove all entries from an integer table.
void * itable_lookup(struct itable *h, UINT64_T key)
Look up a value by key.
int itable_insert(struct itable *h, UINT64_T key, const void *value)
Insert a key and value.
struct itable * itable_create(int buckets)
Create a new integer table.
int itable_size(struct itable *h)
Count the entries in an integer table.
int itable_nextkey(struct itable *h, UINT64_T *key, void **value)
Continue iteration over all keys.
void * itable_remove(struct itable *h, UINT64_T key)
Remove a value by key.
void * itable_pop(struct itable *h)
Remove any one value.