GHashTable reverse lookup / find key (patch exists)
- From: Bastiaan Veelo <Bastiaan Veelo net>
- To: gtk-devel-list gnome org
- Subject: GHashTable reverse lookup / find key (patch exists)
- Date: Sun, 12 Nov 2006 13:45:36 +0100
Dear glib developers,
Long ago, Russel Shaw submitted a patch
http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00109.html to
do reverse lookups in a GHashTable. That is, to find the key for a
certain key/value pair. His post does not seem to have caused any
reaction on the list, and it has not made it into glib 2.12.4 which I am
using.
I am currently using a hack to get this functionality. Is there any
chance that this patch eventually gets accepted? Should I submit a
feature request on bugzilla?
P.S. Russel called his function g_hash_table_lookup_reverse(). But since
this is not a cheap operation, maybe g_hash_table_find_key() is better,
also because the only difference to g_hash_table_find() is just one
identifier.
Thanks,
Bastiaan.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]