Home | History | Annotate | Download | only in common

Lines Matching defs:UHashtable

19  * UHashtable stores key-value pairs and does moderately fast lookup
28 * UHashtable doesn't care and manipulates them via user-supplied
34 * UHashtable ownership of keys and values is flexible, and controlled
37 * then UHashtable can be made to delete that object by setting the
147 * The UHashtable struct. Clients should treat this as an opaque data
150 struct UHashtable {
186 UBool allocated; /* Was this UHashtable allocated? */
188 typedef struct UHashtable UHashtable;
197 * Initialize a new UHashtable.
203 * @return A pointer to a UHashtable, or 0 if an error occurred.
206 U_CAPI UHashtable* U_EXPORT2
213 * Initialize a new UHashtable with a given initial size.
220 * @return A pointer to a UHashtable, or 0 if an error occurred.
223 U_CAPI UHashtable* U_EXPORT2
231 * Initialize an existing UHashtable.
237 * @return A pointer to a UHashtable, or 0 if an error occurred.
240 U_CAPI UHashtable* U_EXPORT2
241 uhash_init(UHashtable *hash,
248 * Close a UHashtable, releasing the memory used.
249 * @param hash The UHashtable to close. If hash is NULL no operation is performed.
252 uhash_close(UHashtable *hash);
258 * @param hash The UHashtable to set
263 uhash_setKeyHasher(UHashtable *hash, UHashFunction *fn);
268 * @param hash The UHashtable to set
273 uhash_setKeyComparator(UHashtable *hash, UKeyComparator *fn);
278 * @param hash The UHashtable to set
283 uhash_setValueComparator(UHashtable *hash, UValueComparator *fn);
291 * @param hash The UHashtable to set
296 uhash_setKeyDeleter(UHashtable *hash, UObjectDeleter *fn);
304 * @param hash The UHashtable to set
309 uhash_setValueDeleter(UHashtable *hash, UObjectDeleter *fn);
315 * @param hash The UHashtable to set
319 uhash_setResizePolicy(UHashtable *hash, enum UHashResizePolicy policy);
322 * Get the number of key-value pairs stored in a UHashtable.
323 * @param hash The UHashtable to query.
327 uhash_count(const UHashtable *hash);
330 * Put a (key=pointer, value=pointer) item in a UHashtable. If the
335 * @param hash The target UHashtable.
343 uhash_put(UHashtable *hash,
349 * Put a (key=integer, value=pointer) item in a UHashtable.
353 * @param hash The target UHashtable.
361 uhash_iput(UHashtable *hash,
367 * Put a (key=pointer, value=integer) item in a UHashtable. If the
371 * @param hash The target UHashtable.
379 uhash_puti(UHashtable *hash,
385 * Put a (key=integer, value=integer) item in a UHashtable. If the
389 * @param hash The target UHashtable.
397 uhash_iputi(UHashtable *hash,
403 * Retrieve a pointer value from a UHashtable using a pointer key,
405 * @param hash The target UHashtable.
410 uhash_get(const UHashtable *hash,
414 * Retrieve a pointer value from a UHashtable using a integer key,
416 * @param hash The target UHashtable.
421 uhash_iget(const UHashtable *hash,
425 * Retrieve an integer value from a UHashtable using a pointer key,
427 * @param hash The target UHashtable.
432 uhash_geti(const UHashtable *hash,
435 * Retrieve an integer value from a UHashtable using an integer key,
437 * @param hash The target UHashtable.
442 uhash_igeti(const UHashtable *hash,
446 * Remove an item from a UHashtable stored by uhash_put().
447 * @param hash The target UHashtable.
452 uhash_remove(UHashtable *hash,
456 * Remove an item from a UHashtable stored by uhash_iput().
457 * @param hash The target UHashtable.
462 uhash_iremove(UHashtable *hash,
466 * Remove an item from a UHashtable stored by uhash_puti().
467 * @param hash The target UHashtable.
472 uhash_removei(UHashtable *hash,
476 * Remove an item from a UHashtable stored by uhash_iputi().
477 * @param hash The target UHashtable.
482 uhash_iremovei(UHashtable *hash,
486 * Remove all items from a UHashtable.
487 * @param hash The target UHashtable.
490 uhash_removeAll(UHashtable *hash);
493 * Locate an element of a UHashtable. The caller must not modify the
499 * @param hash The target UHashtable.
504 uhash_find(const UHashtable *hash, const void* key);
507 * Iterate through the elements of a UHashtable. The caller must not
513 * @param hash The target UHashtable.
520 uhash_nextElement(const UHashtable *hash,
535 uhash_removeElement(UHashtable *hash, const UHashElement* e);
726 uhash_equals(const UHashtable* hash1, const UHashtable* hash2);