Legacy Hash Table Implementation

No overview available.

Topics

Functions

NSAllHashTableObjects

Returns all of the elements in the specified hash table.

NSCompareHashTables

Returns a Boolean value that indicates whether the elements of two hash tables are equal.

NSCopyHashTableWithZone

Performs a shallow copy of the specified hash table.

NSCountHashTable

Returns the number of elements in a hash table.

NSCreateHashTable

Creates and returns a new hash table.

NSCreateHashTableWithZone

Creates a new hash table in a given zone.

NSEndHashTableEnumeration

Used when finished with an enumerator.

NSEnumerateHashTable

Creates an enumerator for the specified hash table.

NSFreeHashTable

Deletes the specified hash table.

NSHashGet

Returns an element of the hash table.

NSHashInsert

Adds an element to the specified hash table.

NSHashInsertIfAbsent

Adds an element to the specified hash table only if the table does not already contain the element.

NSHashInsertKnownAbsent

Adds an element to the specified hash table.

NSHashRemove

Removes an element from the specified hash table.

NSNextHashEnumeratorItem

Returns the next hash-table element in the enumeration.

NSResetHashTable

Deletes the elements of the specified hash table.

NSStringFromHashTable

Returns a string describing the hash table’s contents.

Data Types

NSHashEnumerator

Allows successive elements of a hash table to be returned each time this structure is passed to NSNextHashEnumeratorItem.

NSHashTable

The opaque data type used by the functions described in Hash Tables.

NSHashTableCallBacks

Defines a structure that contains the function pointers used to configure behavior of NSHashTable with respect to elements within a hash table.

NSHashTableOptions

Components in a bit-field to specify the behavior of elements in an NSHashTable object.

Constants

NSIntegerHashCallBacks

For sets of NSInteger-sized quantities or smaller (for example, int, long, or unichar).

NSIntHashCallBacks

For sets of pointer-sized quantities or smaller (for example, int, long, or unichar).

Deprecated
NSNonOwnedPointerHashCallBacks

For sets of pointers, hashed by address.

NSNonRetainedObjectHashCallBacks

For sets of objects, but without retaining/releasing.

NSObjectHashCallBacks

For sets of objects (similar to NSSet).

NSOwnedObjectIdentityHashCallBacks

For sets of objects, with transfer of ownership upon insertion, using pointer equality.

NSOwnedPointerHashCallBacks

For sets of pointers, with transfer of ownership upon insertion.

NSPointerToStructHashCallBacks

For sets of pointers to structs, when the first field of the struct is int-sized.

See Also

Deprecated

+ hashTableWithWeakObjects

Returns a new hash table for storing weak references to its contents.

Deprecated