hash/voc_glib.h File Reference
#include "glib.h"
Go to the source code of this file.
Defines |
#define | NPS_VOC_GLIB 1 |
#define | NPS_VOC_T GHashTable |
#define | NPS_VOC_NEW(size) g_hash_table_new(g_str_hash,g_str_equal) |
#define | NPS_VOC_DEL(h) g_hash_table_destroy((h)) |
#define | NPS_VOC_SET(h, k, v) g_hash_table_insert((h),(k),(v)) |
#define | NPS_VOC_GET(h, k) g_hash_table_lookup((h),(k)) |
#define | NPS_VOC_SIZE(h) g_hash_table_size((h)) |
#define | NPS_VOC_FOREACH(h, f, d) g_hash_table_foreach((h),(f),(d)) |
#define | NPS_VOC_SAVE(h, f) nps_voc_g_hash_save((h),(f)) |
#define | NPS_VOC_LOAD(h, f) nps_voc_g_hash_load((h),(f)) |
#define | NPS_VOC_INVERT(h) nps_voc_g_invert((h)) |
Define Documentation
#define NPS_VOC_DEL |
( |
h |
|
) |
g_hash_table_destroy((h)) |
#define NPS_VOC_FOREACH |
( |
h, |
|
|
f, |
|
|
d |
|
) |
g_hash_table_foreach((h),(f),(d)) |
#define NPS_VOC_GET |
( |
h, |
|
|
k |
|
) |
g_hash_table_lookup((h),(k)) |
#define NPS_VOC_INVERT |
( |
h |
|
) |
nps_voc_g_invert((h)) |
#define NPS_VOC_LOAD |
( |
h, |
|
|
f |
|
) |
nps_voc_g_hash_load((h),(f)) |
#define NPS_VOC_NEW |
( |
size |
|
) |
g_hash_table_new(g_str_hash,g_str_equal) |
#define NPS_VOC_SAVE |
( |
h, |
|
|
f |
|
) |
nps_voc_g_hash_save((h),(f)) |
#define NPS_VOC_SET |
( |
h, |
|
|
k, |
|
|
v |
|
) |
g_hash_table_insert((h),(k),(v)) |
#define NPS_VOC_SIZE |
( |
h |
|
) |
g_hash_table_size((h)) |
#define NPS_VOC_T GHashTable |