|
LibTIFF 4.7.2
TIFF library public API and implementation reference
|
Declare the private callback-driven hash-set interface. More...
#include <stdbool.h>Go to the source code of this file.
Typedefs | |
| typedef struct _TIFFHashSet | TIFFHashSet |
| Refer to a private hash set with callback-defined element ownership. | |
| typedef unsigned long(* | TIFFHashSetHashFunc) (const void *elt) |
| Compute an element hash without changing its key. | |
| typedef bool(* | TIFFHashSetEqualFunc) (const void *elt1, const void *elt2) |
| Test whether a stored element matches another element or key. | |
| typedef void(* | TIFFHashSetFreeEltFunc) (struct tiff *tif, void *elt) |
| Dispose of an element according to the set's ownership policy. | |
Functions | |
| TIFFHashSet * | TIFFHashSetNew (struct tiff *tif, TIFFHashSetHashFunc fnHashFunc, TIFFHashSetEqualFunc fnEqualFunc, TIFFHashSetFreeEltFunc fnFreeEltFunc) |
| Allocate an empty hash set with optional ownership callbacks. | |
| void | TIFFHashSetDestroy (TIFFHashSet *set) |
| Release a hash set and dispose its live elements if configured. | |
| int | TIFFHashSetSize (const TIFFHashSet *set) |
| Return the current live-element count. | |
| bool | TIFFHashSetInsert (TIFFHashSet *set, void *elt) |
| Insert an element or replace an equal element. | |
| void * | TIFFHashSetLookup (TIFFHashSet *set, const void *elt) |
| Find a borrowed stored element matching a key. | |
| bool | TIFFHashSetRemove (TIFFHashSet *set, const void *elt) |
| Remove a matching element, disposing it if configured. | |
Declare the private callback-driven hash-set interface.
Elements are unique according to the comparison callback. Hash/equality keys must remain stable while stored, and equal elements must hash equally. Operations are not synchronised; callbacks must not structurally mutate or destroy the invoking set. See Shared services for ownership rules.
Definition in file tif_hash_set.h.