10.6 Hash Tables

These functions are used to create and manipulate hash tables, which are structs of type NSHashTable.

NSAllHashTableObjects

NSArray *NSAllHashTableObjects(NSHashTable *table)

NSCompareHashTables

BOOL NSCompareHashTables(NSHashTable *table1, NSHashTable *table2)

NSCopyHashTableWithZone

NSHashTable *NSCopyHashTableWithZone(NSHashTable *table, NSZone *zone)

NSCountHashTable

unsigned NSCountHashTable(NSHashTable *table)

NSCreateHashTable

NSHashTable *NSCreateHashTable(NSHashTableCallBacks callBacks, unsigned capacity)

NSCreateHashTableWithZone

NSHashTable *NSCreateHashTableWithZone(NSHashTableCallBacks callBacks, unsigned capacity, NSZone *zone)

NSEndHashTableEnumeration

void NSEndHashTableEnumeration(NSHashEnumerator *enumerator)

NSEnumerateHashTable

NSHashEnumerator NSEnumerateHashTable(NSHashTable *table)

NSFreeHashTable

void NSFreeHashTable(NSHashTable *table)

NSHashGet

void *NSHashGet(NSHashTable *table, const void *pointer)

NSHashInsert

void NSHashInsert(NSHashTable *table, const void *pointer)

NSHashInsertIfAbsent

void *NSHashInsertIfAbsent(NSHashTable *table, const void *pointer)

NSHashInsertKnownAbsent

void NSHashInsertKnownAbsent(NSHashTable *table, const void *pointer)

NSHashRemove

void NSHashRemove(NSHashTable *table, const void *pointer)

NSNextHashEnumeratorItem

void *NSNextHashEnumeratorItem(NSHashEnumerator *enumerator)

NSResetHashTable

void NSResetHashTable(NSHashTable *table)

NSStringFromHashTable

NSString *NSStringFromHashTable(NSHashTable *table)



    Part II: API Quick Reference
    Chapter 13. Foundation Classes