src/misc/hash_table.h File Reference

Simple bucket hash table interface. More...

#include <misc/result.h>
#include <misc/generic_types.h>

Go to the source code of this file.

Classes

struct  txc_hash_table_iter_s

Defines

#define HASH_FACTOR   4

Typedefs

typedef txc_hash_table_s txc_hash_table_t
typedef txc_hash_table_iter_s txc_hash_table_iter_t
typedef unsigned int txc_hash_table_key_t
typedef void * txc_hash_table_value_t
typedef txc_hash_table_bucket_s txc_hash_table_bucket_t

Functions

txc_result_t txc_hash_table_create (txc_hash_table_t **, unsigned int, txc_bool_t)
txc_result_t txc_hash_table_destroy (txc_hash_table_t **)
txc_result_t txc_hash_table_add (txc_hash_table_t *, txc_hash_table_key_t, txc_hash_table_value_t)
txc_result_t txc_hash_table_lookup (txc_hash_table_t *, txc_hash_table_key_t, txc_hash_table_value_t *)
txc_result_t txc_hash_table_remove (txc_hash_table_t *, txc_hash_table_key_t, txc_hash_table_value_t *)
void txc_hash_table_iter_init (txc_hash_table_t *hash_table, txc_hash_table_iter_t *iter)
txc_result_t txc_hash_table_iter_next (txc_hash_table_iter_t *iter, txc_hash_table_key_t *key, txc_hash_table_value_t *value)
void txc_hash_table_print (txc_hash_table_t *)


Detailed Description

Simple bucket hash table interface.

Definition in file hash_table.h.


Generated on Wed Dec 9 20:32:40 2009 for xCalls by  doxygen 1.4.7