Instance Method

initWithKeyPointerFunctions:valuePointerFunctions:capacity:

Returns a map table, initialized with the given functions.

Declaration

- (instancetype)initWithKeyPointerFunctions:(NSPointerFunctions *)keyFunctions valuePointerFunctions:(NSPointerFunctions *)valueFunctions capacity:(NSUInteger)initialCapacity;

Parameters

keyFunctions

The functions the map table uses to manage keys.

valueFunctions

The functions the map table uses to manage values.

initialCapacity

The initial capacity of the map table. This is just a hint; the map table may subsequently grow and shrink as required.

Return Value

A map table, initialized with the given functions.

See Also

Creating and Initializing a Map Table

- initWithKeyOptions:valueOptions:capacity:

Returns a map table, initialized with the given options.

+ mapTableWithKeyOptions:valueOptions:

Returns a new map table, initialized with the given options

+ strongToStrongObjectsMapTable

Returns a new map table object which has strong references to the keys and values.

+ weakToStrongObjectsMapTable

Returns a new map table object which has weak references to the keys and strong references to the values.

+ strongToWeakObjectsMapTable

Returns a new map table object which has strong references to the keys and weak references to the values.

+ weakToWeakObjectsMapTable

Returns a new map table object which has weak references to the keys and values.

NSMapTableOptions

Constants used as components in a bitfield to specify the behavior of elements (keys and values) in an NSMapTable object.