213 * |
213 * |
214 * @param map the map to create the iterator for |
214 * @param map the map to create the iterator for |
215 * @return an iterator for the currently stored values |
215 * @return an iterator for the currently stored values |
216 */ |
216 */ |
217 __attribute__((__nonnull__, __warn_unused_result__)) |
217 __attribute__((__nonnull__, __warn_unused_result__)) |
218 static inline CxIterator cxMapIteratorValues(CxMap *map) { |
218 static inline CxIterator cxMapIteratorValues(CxMap const *map) { |
219 return map->cl->iterator(map, CX_MAP_ITERATOR_VALUES); |
219 return map->cl->iterator(map, CX_MAP_ITERATOR_VALUES); |
220 } |
220 } |
221 |
221 |
222 /** |
222 /** |
223 * Creates a key iterator for a map. |
223 * Creates a key iterator for a map. |
229 * |
229 * |
230 * @param map the map to create the iterator for |
230 * @param map the map to create the iterator for |
231 * @return an iterator for the currently stored keys |
231 * @return an iterator for the currently stored keys |
232 */ |
232 */ |
233 __attribute__((__nonnull__, __warn_unused_result__)) |
233 __attribute__((__nonnull__, __warn_unused_result__)) |
234 static inline CxIterator cxMapIteratorKeys(CxMap *map) { |
234 static inline CxIterator cxMapIteratorKeys(CxMap const *map) { |
235 return map->cl->iterator(map, CX_MAP_ITERATOR_KEYS); |
235 return map->cl->iterator(map, CX_MAP_ITERATOR_KEYS); |
236 } |
236 } |
237 |
237 |
238 /** |
238 /** |
239 * Creates an iterator for a map. |
239 * Creates an iterator for a map. |
247 * @return an iterator for the currently stored entries |
247 * @return an iterator for the currently stored entries |
248 * @see cxMapIteratorKeys() |
248 * @see cxMapIteratorKeys() |
249 * @see cxMapIteratorValues() |
249 * @see cxMapIteratorValues() |
250 */ |
250 */ |
251 __attribute__((__nonnull__, __warn_unused_result__)) |
251 __attribute__((__nonnull__, __warn_unused_result__)) |
252 static inline CxIterator cxMapIterator(CxMap *map) { |
252 static inline CxIterator cxMapIterator(CxMap const *map) { |
253 return map->cl->iterator(map, CX_MAP_ITERATOR_PAIRS); |
253 return map->cl->iterator(map, CX_MAP_ITERATOR_PAIRS); |
254 } |
254 } |
255 |
255 |
256 |
256 |
257 /** |
257 /** |