Up
Authors
- Richard Frith-Macdonald (
rfm@gnu.org
)
-
Date: Generated at 2023-12-20 19:35:39 -0500
Copyright: (C) 2009 Free Software Foundation, Inc.
- Declared in:
- Foundation/NSMapTable.h
- Conforms to:
- NSCopying
- NSCoding
- NSFastEnumeration
Availability: OpenStep
Description forthcoming.
Method summary
+ (instancetype)
mapTableWithStrongToStrongObjects;
Availability: OpenStep
Convenience method for creating a map table to
store object values using object keys.
+ (instancetype)
mapTableWithStrongToWeakObjects;
Availability: OpenStep
Convenience method for creating a map table to
store non-retained object values with retained object
keys.
+ (instancetype)
mapTableWithWeakToStrongObjects;
Availability: OpenStep
Convenience method for creating a map table to
store retained object values with non-retained object
keys.
+ (instancetype)
mapTableWithWeakToWeakObjects;
Availability: OpenStep
Convenience method for creating a map table to
store non-retained object values with non-retained
object keys.
+ (instancetype)
strongToStrongObjectsMapTable;
Availability: OpenStep
Convenience method for creating a map table to
store object values using object keys. The collection
will retain both the key and the value.
+ (instancetype)
strongToWeakObjectsMapTable;
Availability: OpenStep
Convenience method for creating a map table to
store object values using object keys. The collection
will retain the key, the value will be a zeroing weak
reference.
+ (instancetype)
weakToStrongObjectsMapTable;
Availability: OpenStep
Convenience method for creating a map table to
store object values using object keys. The collection
will retain the value, the key will be a zeroing weak
reference.
+ (instancetype)
weakToWeakObjectsMapTable;
Availability: OpenStep
Convenience method for creating a map table to
store object values using object keys. The collection
will use zeroing weak references for both the key and
the value.
- (
NSUInteger)
count;
Availability: OpenStep
Return the number of items stored in the map.
- (
NSDictionary*)
dictionaryRepresentation;
Availability: OpenStep
Return a dictionary containing the keys and values
in the receiver.
- (instancetype)
initWithKeyPointerFunctions: (
NSPointerFunctions*)keyFunctions
valuePointerFunctions: (
NSPointerFunctions*)valueFunctions
capacity: (
NSUInteger)initialCapacity;
Availability: OpenStep
Initialiser using full pointer function
information to describe the keys and values.
- (GS_GENERIC_CLASS(NSEnumerator,KeyT)*)
keyEnumerator;
Availability: OpenStep
Return an enumerator able to enumerate the keys in
the receiver.
- (
NSPointerFunctions*)
keyPointerFunctions;
Availability: OpenStep
Return an NSPointerFunctions value describind the
functions used by the receiver to handle keys.
- (GS_GENERIC_CLASS(NSEnumerator,ValT)*)
objectEnumerator;
Availability: OpenStep
Return an enumerator able to enumerate the values in
the receiver.
- (GS_GENERIC_TYPE(ValT))
objectForKey: (GS_GENERIC_TYPE(KeyT))aKey;
Availability: OpenStep
Return the object stored under the specified key.
- (void)
removeAllObjects;
Availability: OpenStep
Empty the receiver of all stored values.
- (void)
removeObjectForKey: (GS_GENERIC_TYPE(KeyT))aKey;
Availability: OpenStep
Remove the object stored under the specified key.
- (void)
setObject: (GS_GENERIC_TYPE(ValT))anObject
forKey: (GS_GENERIC_TYPE(KeyT))aKey;
Availability: OpenStep
Store the object under the specified key, replacing
any object which was previously stored under that key.
- (
NSPointerFunctions*)
valuePointerFunctions;
Availability: OpenStep
Return an NSPointerFunctions value describind the
functions used by the receiver to handle values.
Up