28 #ifndef _GFSM_WEIGHTMAP_H
29 #define _GFSM_WEIGHTMAP_H
89 gpointer key_cmp_data,
90 GDestroyNotify key_free_func);
138 #define gfsm_weightmap_size(weightmap) g_tree_nnodes(weightmap)
141 #define gfsm_weightmap_remove(weightmap,key) g_tree_remove((weightmap),((gpointer)(key)))
144 #define gfsm_weightmap_foreach(weightmap,func,data) g_tree_foreach((weightmap),(func),(data))
166 GHashFunc key_hash_func,
167 GEqualFunc key_equal_func,
168 GDestroyNotify key_destroy_func);
171 #define gfsm_weighthash_new(key_hash_f,key_equal_f) \
172 gfsm_weighthash_new_full(NULL,(key_hash_f),(key_equal_f),NULL)
218 #define gfsm_weighthash_foreach(wh,func,data) \
219 g_hash_table_foreach((wh)->table,(func),(data))
224 #ifdef GFSM_INLINE_ENABLED
225 # include <gfsmWeightMap.hi>