|
LibTIFF 4.7.2
TIFF library public API and implementation reference
|
Own bucket/node storage and record callback-defined element policy. More...
Data Fields | |
| TIFF * | tif |
| Borrowed handle used for every set allocation and passed to fnFreeEltFunc, or NULL for unaccounted allocation. | |
| TIFFHashSetHashFunc | fnHashFunc |
| Borrowed hash function, with a default installed at creation. | |
| TIFFHashSetEqualFunc | fnEqualFunc |
| Borrowed equality function, with a default installed at creation. | |
| TIFFHashSetFreeEltFunc | fnFreeEltFunc |
| Optional consuming disposer, including for failed incoming insertions. | |
| TIFFList ** | tabList |
| Owned array of bucket-head pointers. | |
| int | nSize |
| Live-element count in normal externally visible state. | |
| int | nIndiceAllocatedSize |
| Index into anPrimes; callers must keep growth/shrink selection in range. | |
| int | nAllocatedSize |
| Logical bucket count used for hashing and traversal. | |
| TIFFList * | psRecyclingList |
| Owned spare-node list, whose payload fields are not live elements. | |
| int | nRecyclingListSize |
| Number of nodes in the spare-node list, capped at 128 on return. | |
| bool | bRehash |
| Deferred rehash state used by optional deferred removal. | |
Own bucket/node storage and record callback-defined element policy.
All set storage is allocated through the TIFF allocators with the borrowed tif handle, so it counts against that handle's memory limits. Access and callback lifetime need external coordination; no internal lock or iteration mutation guard exists.
Definition at line 72 of file tif_hash_set.c.
| bool _TIFFHashSet::bRehash |
Deferred rehash state used by optional deferred removal.
Definition at line 110 of file tif_hash_set.c.
Referenced by TIFFHashSetClearInternal(), TIFFHashSetInsert(), TIFFHashSetNew(), TIFFHashSetRehash(), and TIFFHashSetRemoveInternal().
| TIFFHashSetEqualFunc _TIFFHashSet::fnEqualFunc |
Borrowed equality function, with a default installed at creation.
Definition at line 84 of file tif_hash_set.c.
Referenced by TIFFHashSetFindPtr(), TIFFHashSetNew(), and TIFFHashSetRemoveInternal().
| TIFFHashSetFreeEltFunc _TIFFHashSet::fnFreeEltFunc |
Optional consuming disposer, including for failed incoming insertions.
Definition at line 89 of file tif_hash_set.c.
Referenced by TIFFHashSetClearInternal(), TIFFHashSetInsert(), TIFFHashSetNew(), and TIFFHashSetRemoveInternal().
| TIFFHashSetHashFunc _TIFFHashSet::fnHashFunc |
Borrowed hash function, with a default installed at creation.
Definition at line 80 of file tif_hash_set.c.
Referenced by TIFFHashSetFindPtr(), TIFFHashSetInsert(), TIFFHashSetNew(), TIFFHashSetRehash(), and TIFFHashSetRemoveInternal().
| int _TIFFHashSet::nAllocatedSize |
Logical bucket count used for hashing and traversal.
Definition at line 100 of file tif_hash_set.c.
Referenced by TIFFHashSetClearInternal(), TIFFHashSetFindPtr(), TIFFHashSetInsert(), TIFFHashSetNew(), TIFFHashSetRehash(), and TIFFHashSetRemoveInternal().
| int _TIFFHashSet::nIndiceAllocatedSize |
Index into anPrimes; callers must keep growth/shrink selection in range.
Definition at line 98 of file tif_hash_set.c.
Referenced by TIFFHashSetInsert(), TIFFHashSetNew(), TIFFHashSetRehash(), and TIFFHashSetRemoveInternal().
| int _TIFFHashSet::nRecyclingListSize |
Number of nodes in the spare-node list, capped at 128 on return.
Definition at line 108 of file tif_hash_set.c.
Referenced by TIFFHashSetGetNewListElt(), TIFFHashSetNew(), and TIFFHashSetReturnListElt().
| int _TIFFHashSet::nSize |
Live-element count in normal externally visible state.
Definition at line 93 of file tif_hash_set.c.
Referenced by TIFFHashSetInsert(), TIFFHashSetNew(), TIFFHashSetRehash(), TIFFHashSetRemoveInternal(), and TIFFHashSetSize().
| TIFFList* _TIFFHashSet::psRecyclingList |
Owned spare-node list, whose payload fields are not live elements.
Definition at line 104 of file tif_hash_set.c.
Referenced by TIFFHashSetDestroy(), TIFFHashSetGetNewListElt(), TIFFHashSetNew(), and TIFFHashSetReturnListElt().
| TIFFList** _TIFFHashSet::tabList |
Owned array of bucket-head pointers.
Definition at line 91 of file tif_hash_set.c.
Referenced by TIFFHashSetClearInternal(), TIFFHashSetDestroy(), TIFFHashSetFindPtr(), TIFFHashSetInsert(), TIFFHashSetNew(), TIFFHashSetRehash(), and TIFFHashSetRemoveInternal().
| TIFF* _TIFFHashSet::tif |
Borrowed handle used for every set allocation and passed to fnFreeEltFunc, or NULL for unaccounted allocation.
Definition at line 78 of file tif_hash_set.c.
Referenced by TIFFHashSetClearInternal(), TIFFHashSetDestroy(), TIFFHashSetGetNewListElt(), TIFFHashSetInsert(), TIFFHashSetNew(), TIFFHashSetRehash(), TIFFHashSetRemoveInternal(), and TIFFHashSetReturnListElt().