1QBMAP.H(3)                 libqb Programmer's Manual                QBMAP.H(3)
2
3
4

NAME

6       qbmap.h
7

SYNOPSIS

9       #include <qb/qbmap.h>
10

DESCRIPTION

12       This  provides  a  map  interface  to  a  Patricia  trie,  hashtable or
13       skiplist.
14
15       Deletion of items within the iterator is supported.  But  note  do  not
16       free  the  item  memory  in  the iterator. If you need to free the data
17       items then register for a notifier and free the memory there.  This  is
18       required as the items are reference counted.
19
20       The  ptrie  also  supports prefixes in notifications: (remember to pass
21       QB_MAP_NOTIFY_RECURSIVE into the notify_add.
22

NOTE

24       hashtable only supports deletion and replacement notificatins. There is
25       also  a special global callback for freeing deleted and replaced values
26       (QB_MAP_NOTIFY_FREE).
27

SEE ALSO

29       qb_trie_dump(3), qb_map_iter_create(3), qb_skiplist_create(3),
30       qb_map_notify_del(3), qb_map_put(3), qb_map_count_get(3),
31       qb_map_foreach(3), qb_map_pref_iter_create(3), qb_map_iter_next(3),
32       qb_map_get(3), qb_map_destroy(3), qb_hashtable_create(3),
33       qb_map_iter_free(3), qb_map_notify_add(3), qb_trie_create(3),
34       qb_map_notify_del_2(3), qb_map_rm(3)
35
37       Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.
38
39
40
41LIBQB                             2020-07-30                        QBMAP.H(3)
Impressum