LibTIFF 4.7.2
TIFF library public API and implementation reference
Loading...
Searching...
No Matches
Data Fields
_TIFFHashSet Struct Reference

Own bucket/node storage and record callback-defined element policy. More...

Collaboration diagram for _TIFFHashSet:
[legend]

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.
 

Detailed Description

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.

Field Documentation

◆ bRehash

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().

◆ fnEqualFunc

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().

◆ fnFreeEltFunc

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().

◆ fnHashFunc

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().

◆ nAllocatedSize

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().

◆ nIndiceAllocatedSize

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().

◆ nRecyclingListSize

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().

◆ nSize

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().

◆ psRecyclingList

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().

◆ tabList

TIFFList** _TIFFHashSet::tabList

◆ tif

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().


The documentation for this struct was generated from the following file: