Home | History | Annotate | Download | only in utils

Lines Matching refs:map

22 /* Create new integer map */
25 /* Returns the number of keys stored in the map */
26 int aintmap_getCount( AIntMap* map );
28 /* Returns TRUE if the map has a value for the 'key'. Necessary because
29 * NULL is a valid value for the map.
31 int aintmap_has( AIntMap* map, int key );
33 /* Get the value associated with a 'key', or NULL if not in map */
34 void* aintMap_get( AIntMap* map, int key );
36 /* Get the value associated with a 'key', or 'def' if not in map */
37 void* aintMap_getWithDefault( AIntMap* map, int key, void* def );
40 void* aintMap_set( AIntMap* map, int key, void* value );
43 void* aintMap_del( AIntMap* map, int key );
45 /* Destroy a given integer map */
46 void aintMap_free( AIntMap* map );
48 /* Integer map iterator. First call aintMapIterator_init(), then call
54 * aintMapIterator_init(iter, map);
66 /* Initialize iterator. Returns -1 if the map is empty, or 0 otherwise
70 void aintMapIterator_init( AIntMapIterator* iter, AIntMap* map );
84 #define AINTMAP_FOREACH_KEY(map, keyvarname, stmnt) \
87 aintMapIterator_init(__aintmap_foreach_iter, (map)); \
95 #define AINTMAP_FOREACH_VALUE(map, valvarname, stmnt) \
98 aintMapIterator_init(__aintmap_foreach_iter, (map)); \