Up

NSHashTable class reference

Authors

Richard Frith-Macdonald (rfm@gnu.org)

Date: Generated at 2023-12-20 19:35:39 -0500

Copyright: (C) 2009 Free Software Foundation, Inc.

Software documentation for the NSHashTable class

NSHashTable : NSObject

Declared in:
Foundation/NSHashTable.h
Conforms to:
NSCopying
NSCoding
NSFastEnumeration
Availability: OpenStep

Description forthcoming.
Method summary

hashTableWithOptions: 

+ (instancetype) hashTableWithOptions: (NSPointerFunctionsOptions)options;
Availability: OpenStep

Description forthcoming.

hashTableWithWeakObjects 

+ (instancetype) hashTableWithWeakObjects;
Availability: OpenStep

Description forthcoming.

weakObjectsHashTable 

+ (instancetype) weakObjectsHashTable;
Availability: OpenStep

Creates a hash table that uses zeroing weak references (either using the automatic reference counting or garbage collection mechanism, depending on which mode this framework is compiled in) so that objects are removed when their last other reference disappears.

addObject: 

- (void) addObject: (GS_GENERIC_TYPE(ElementT))object;
Availability: OpenStep

Adds the object to the receiver.

allObjects 

- (GS_GENERIC_CLASS(NSArray,ElementT)*) allObjects;
Availability: OpenStep

Returns an array containing all objects in the receiver.

anyObject 

- (GS_GENERIC_TYPE(ElementT)) anyObject;
Availability: OpenStep

Returns any objct from the receiver, or nil if the receiver contains no objects.

containsObject: 

- (BOOL) containsObject: (GS_GENERIC_TYPE(ElementT))anObject;
Availability: OpenStep

Returns YES if the receiver contains an item equal to anObject, or NO otherwise.

count 

- (NSUInteger) count;
Availability: OpenStep

Return the number of items atored in the receiver.

initWithOptions: capacity: 

- (instancetype) initWithOptions: (NSPointerFunctionsOptions)options capacity: (NSUInteger)initialCapacity;
Availability: OpenStep

Description forthcoming.

initWithPointerFunctions: capacity: 

- (instancetype) initWithPointerFunctions: (NSPointerFunctions*)functions capacity: (NSUInteger)initialCapacity;
Availability: OpenStep

Description forthcoming.

intersectHashTable: 

- (void) intersectHashTable: (GS_GENERIC_CLASS(NSHashTable,ElementT)*)other;
Availability: OpenStep

Removes from the receiver any items which are not also present in 'other'.

intersectsHashTable: 

- (BOOL) intersectsHashTable: (GS_GENERIC_CLASS(NSHashTable,ElementT)*)other;
Availability: OpenStep

Returns YES if the receiver and 'other' contain any items in common.

isEqualToHashTable: 

- (BOOL) isEqualToHashTable: (GS_GENERIC_CLASS(NSHashTable,ElementT)*)other;
Availability: OpenStep

Returns YES if the receiver and 'other' contain equal sets of items.

isSubsetOfHashTable: 

- (BOOL) isSubsetOfHashTable: (GS_GENERIC_CLASS(NSHashTable,ElementT)*)other;
Availability: OpenStep

Returns YES fi all the items in the receiver are also present in 'other'

member: 

- (GS_GENERIC_TYPE(ElementT)) member: (GS_GENERIC_TYPE(ElementT))object;
Availability: OpenStep

Returns an item stored in the receiver which is equal to the supplied object argument, or nil if no matchi is found.

minusHashTable: 

- (void) minusHashTable: (GS_GENERIC_CLASS(NSHashTable,ElementT)*)other;
Availability: OpenStep

Removes from the receivr all those items which are prsent in both the receiver and in 'other'.

objectEnumerator 

- (GS_GENERIC_CLASS(NSEnumerator,ElementT)*) objectEnumerator;
Availability: OpenStep

Return an enumerator for the receiver.

pointerFunctions 

- (NSPointerFunctions*) pointerFunctions;
Availability: OpenStep

Return an NSPointerFunctions value describing the functions used by the receiver to handle its contents.

removeAllObjects 

- (void) removeAllObjects;
Availability: OpenStep

Removes all objects.

removeObject: 

- (void) removeObject: (GS_GENERIC_TYPE(ElementT))object;
Availability: OpenStep

Remove the object (or any equal object) from the receiver.

setRepresentation 

- (GS_GENERIC_CLASS(NSSet,ElementT)*) setRepresentation;
Availability: OpenStep

Returns a set containing all the objects in the receiver.

unionHashTable: 

- (void) unionHashTable: (GS_GENERIC_CLASS(NSHashTable,ElementT)*)other;
Availability: OpenStep

Adds to the receiver thse items present in 'other' which were not present in the receiver.


Up