Home | History | Annotate | Download | only in common

Lines Matching refs:UHashtable

21  * UHashtable stores key-value pairs and does moderately fast lookup
30 * UHashtable doesn't care and manipulates them via user-supplied
36 * UHashtable ownership of keys and values is flexible, and controlled
39 * then UHashtable can be made to delete that object by setting the
81 * A key or value within a UHashtable.
128 * The UHashtable struct. Clients should treat this as an opaque data
131 struct UHashtable {
167 UBool allocated; /* Was this UHashtable allocated? */
169 typedef struct UHashtable UHashtable;
178 * Initialize a new UHashtable.
184 * @return A pointer to a UHashtable, or 0 if an error occurred.
187 U_CAPI UHashtable* U_EXPORT2
194 * Initialize a new UHashtable with a given initial size.
201 * @return A pointer to a UHashtable, or 0 if an error occurred.
204 U_CAPI UHashtable* U_EXPORT2
212 * Initialize an existing UHashtable.
218 * @return A pointer to a UHashtable, or 0 if an error occurred.
221 U_CAPI UHashtable* U_EXPORT2
222 uhash_init(UHashtable *hash,
229 * Close a UHashtable, releasing the memory used.
230 * @param hash The UHashtable to close. If hash is NULL no operation is performed.
233 uhash_close(UHashtable *hash);
239 * @param hash The UHashtable to set
244 uhash_setKeyHasher(UHashtable *hash, UHashFunction *fn);
249 * @param hash The UHashtable to set
254 uhash_setKeyComparator(UHashtable *hash, UKeyComparator *fn);
259 * @param hash The UHashtable to set
264 uhash_setValueComparator(UHashtable *hash, UValueComparator *fn);
272 * @param hash The UHashtable to set
277 uhash_setKeyDeleter(UHashtable *hash, UObjectDeleter *fn);
285 * @param hash The UHashtable to set
290 uhash_setValueDeleter(UHashtable *hash, UObjectDeleter *fn);
296 * @param hash The UHashtable to set
300 uhash_setResizePolicy(UHashtable *hash, enum UHashResizePolicy policy);
303 * Get the number of key-value pairs stored in a UHashtable.
304 * @param hash The UHashtable to query.
308 uhash_count(const UHashtable *hash);
311 * Put a (key=pointer, value=pointer) item in a UHashtable. If the
316 * @param hash The target UHashtable.
324 uhash_put(UHashtable *hash,
330 * Put a (key=integer, value=pointer) item in a UHashtable.
334 * @param hash The target UHashtable.
342 uhash_iput(UHashtable *hash,
348 * Put a (key=pointer, value=integer) item in a UHashtable. If the
352 * @param hash The target UHashtable.
360 uhash_puti(UHashtable *hash,
366 * Put a (key=integer, value=integer) item in a UHashtable. If the
370 * @param hash The target UHashtable.
378 uhash_iputi(UHashtable *hash,
384 * Retrieve a pointer value from a UHashtable using a pointer key,
386 * @param hash The target UHashtable.
391 uhash_get(const UHashtable *hash,
395 * Retrieve a pointer value from a UHashtable using a integer key,
397 * @param hash The target UHashtable.
402 uhash_iget(const UHashtable *hash,
406 * Retrieve an integer value from a UHashtable using a pointer key,
408 * @param hash The target UHashtable.
413 uhash_geti(const UHashtable *hash,
416 * Retrieve an integer value from a UHashtable using an integer key,
418 * @param hash The target UHashtable.
423 uhash_igeti(const UHashtable *hash,
427 * Remove an item from a UHashtable stored by uhash_put().
428 * @param hash The target UHashtable.
433 uhash_remove(UHashtable *hash,
437 * Remove an item from a UHashtable stored by uhash_iput().
438 * @param hash The target UHashtable.
443 uhash_iremove(UHashtable *hash,
447 * Remove an item from a UHashtable stored by uhash_puti().
448 * @param hash The target UHashtable.
453 uhash_removei(UHashtable *hash,
457 * Remove an item from a UHashtable stored by uhash_iputi().
458 * @param hash The target UHashtable.
463 uhash_iremovei(UHashtable *hash,
467 * Remove all items from a UHashtable.
468 * @param hash The target UHashtable.
471 uhash_removeAll(UHashtable *hash);
474 * Locate an element of a UHashtable. The caller must not modify the
480 * @param hash The target UHashtable.
485 uhash_find(const UHashtable *hash, const void* key);
488 * Iterate through the elements of a UHashtable. The caller must not
494 * @param hash The target UHashtable.
501 uhash_nextElement(const UHashtable *hash,
516 uhash_removeElement(UHashtable *hash, const UHashElement* e);
664 uhash_equals(const UHashtable* hash1, const UHashtable* hash2);