10.8 Map Tables

These functions are used to create and manipulate map tables, which are structs of type NSMapTable.

NSAllMapTableKeys

NSArray *NSAllMapTableKeys(NSMapTable *table)

NSAllMapTableValues

NSArray *NSAllMapTableValues(NSMapTable *table)

NSCompareMapTables

BOOL NSCompareMapTables(NSMapTable *table1, NSMapTable *table2)

NSCopyMapTableWithZone

NSMapTable *NSCopyMapTableWithZone(NSMapTable *table, NSZone *zone)

NSCountMapTable

unsigned NSCountMapTable(NSMapTable *table)

NSCreateMapTable

NSMapTable *NSCreateMapTable(NSMapTableKeyCallBacks keyCallBacks, NSMap-TableValueCallBacks valueCallBacks, unsigned capacity)

NSCreateMapTableWithZone

NSMapTable *NSCreateMapTableWithZone(NSMapTableKeyCallBacks keyCallBacks, NSMapTableValueCallBacks valueCallBacks, unsigned capacity, NSZone *zone)

NSEndMapTableEnumeration

void NSEndMapTableEnumeration(NSMapEnumerator *enumerator)

NSEnumerateMapTable

NSMapEnumerator NSEnumerateMapTable(NSMapTable *table)

NSFreeMapTable

void NSFreeMapTable(NSMapTable *table)

NSMapGet

void *NSMapGet(NSMapTable *table, const void *key)

NSMapInsert

void NSMapInsert(NSMapTable *table, const void *key, const void *value)

NSMapInsertIfAbsent

void *NSMapInsertIfAbsent(NSMapTable *table, const void *key, const void *value)

NSMapInsertKnownAbsent

void NSMapInsertKnownAbsent(NSMapTable *table, const void *key, const void *value)

NSMapMember

BOOL NSMapMember(NSMapTable *table, const void *key, void **originalKey, void **value)

NSMapRemove

void NSMapRemove(NSMapTable *table, const void *key)

NSNextMapEnumeratorPair

BOOL NSNextMapEnumeratorPair(NSMapEnumerator *enumerator, void **key, void **value)

NSResetMapTable

void NSResetMapTable(NSMapTable *table)

NSStringFromMapTable

NSString *NSStringFromMapTable(NSMapTable *table)



    Part II: API Quick Reference
    Chapter 13. Foundation Classes