Hash Index
Hash Index — Hash index.
|
|
Synopsis
#include <libhrel/relation.h>
void (*HIndexFunc) (HTuple *tuple,
gpointer value,
gpointer user_data);
HHashIndex;
HHashIndex* h_hash_index_new (GDestroyNotify key_destroy_func,
GDestroyNotify value_destroy_func,
...);
HHashIndex* h_hash_index_new_l (GDestroyNotify key_destroy_func,
GDestroyNotify value_destroy_func,
GSList *list);
void h_hash_index_free (HHashIndex *index);
guint h_hash_index_get_size (HHashIndex *index);
GSList* h_hash_index_get_attrs (HHashIndex *index);
gpointer h_hash_index_lookup (HHashIndex *index,
HTuple *tuple);
void h_hash_index_insert (HHashIndex *index,
HTuple *tuple,
gpointer value);
gboolean h_hash_index_remove (HHashIndex *index,
HTuple *tuple);
void h_hash_index_foreach (HHashIndex *index,
HIndexFunc func,
gpointer user_data);
Details
HIndexFunc ()
void (*HIndexFunc) (HTuple *tuple,
gpointer value,
gpointer user_data);
tuple : |
|
value : |
|
user_data : |
|
HHashIndex
typedef struct _HHashIndex HHashIndex;
h_hash_index_new ()
HHashIndex* h_hash_index_new (GDestroyNotify key_destroy_func,
GDestroyNotify value_destroy_func,
...);
key_destroy_func : |
|
value_destroy_func : |
|
... : |
|
Returns : |
|
h_hash_index_new_l ()
HHashIndex* h_hash_index_new_l (GDestroyNotify key_destroy_func,
GDestroyNotify value_destroy_func,
GSList *list);
key_destroy_func : |
|
value_destroy_func : |
|
list : |
|
Returns : |
|
h_hash_index_free ()
void h_hash_index_free (HHashIndex *index);
h_hash_index_get_size ()
guint h_hash_index_get_size (HHashIndex *index);
h_hash_index_get_attrs ()
GSList* h_hash_index_get_attrs (HHashIndex *index);
h_hash_index_lookup ()
gpointer h_hash_index_lookup (HHashIndex *index,
HTuple *tuple);
index : |
|
tuple : |
|
Returns : |
|
h_hash_index_insert ()
void h_hash_index_insert (HHashIndex *index,
HTuple *tuple,
gpointer value);
h_hash_index_remove ()
gboolean h_hash_index_remove (HHashIndex *index,
HTuple *tuple);
index : |
|
tuple : |
|
Returns : |
|
h_hash_index_foreach ()
void h_hash_index_foreach (HHashIndex *index,
HIndexFunc func,
gpointer user_data);
index : |
|
func : |
|
user_data : |
|