41#ifndef TIFF_HASH_SET_H_INCLUDED
42#define TIFF_HASH_SET_H_INCLUDED
203 typedef int (*TIFFHashSetIterEltFunc)(
void *elt,
void *user_data);
221 void TIFFHashSetForeach(
TIFFHashSet *set, TIFFHashSetIterEltFunc fnIterFunc,
308 bool TIFFHashSetRemoveDeferRehash(
TIFFHashSet *set,
const void *elt);
bool(* TIFFHashSetEqualFunc)(const void *elt1, const void *elt2)
Test whether a stored element matches another element or key.
void * TIFFHashSetLookup(TIFFHashSet *set, const void *elt)
Find a borrowed stored element matching a key.
bool TIFFHashSetInsert(TIFFHashSet *set, void *elt)
Insert an element or replace an equal element.
bool TIFFHashSetRemove(TIFFHashSet *set, const void *elt)
Remove a matching element, disposing it if configured.
int TIFFHashSetSize(const TIFFHashSet *set)
Return the current live-element count.
void(* TIFFHashSetFreeEltFunc)(struct tiff *tif, void *elt)
Dispose of an element according to the set's ownership policy.
void TIFFHashSetDestroy(TIFFHashSet *set)
Release a hash set and dispose its live elements if configured.
unsigned long(* TIFFHashSetHashFunc)(const void *elt)
Compute an element hash without changing its key.
TIFFHashSet * TIFFHashSetNew(struct tiff *tif, TIFFHashSetHashFunc fnHashFunc, TIFFHashSetEqualFunc fnEqualFunc, TIFFHashSetFreeEltFunc fnFreeEltFunc)
Allocate an empty hash set with optional ownership callbacks.
Own bucket/node storage and record callback-defined element policy.
Hold private state for one open TIFF library instance.