API  0.9.6
 All Classes Files Functions Variables Macros Modules Pages
CPMutableSet Class Reference

#import <CPMutableSet.h>

+ Inheritance diagram for CPMutableSet:

Instance Methods

(void) - addObjectsFromArray:
 
(void) - filterUsingPredicate:
 
(id) - initWithCapacity:
 
(void) - intersectSet:
 
(void) - minusSet:
 
(void) - removeAllObjects
 
(void) - removeObject:
 
(void) - removeObjectsInArray:
 
(void) - setSet:
 
(void) - unionSet:
 
- Instance Methods inherited from CPSet
(CPArray- allObjects
 
(id) - anyObject
 
(BOOL) - containsObject:
 
(id) - copy
 
(CPUInteger) - count
 
(CPString- description
 
(void) - encodeWithCoder:
 
(void) - enumerateObjectsUsingBlock:
 
(CPSet- filteredSetUsingPredicate:
 
(id) - init
 
(id) - initWithArray:
 
(id) - initWithCoder:
 
(id) - initWithObjects:
 
(id) - initWithObjects:count:
 
(id) - initWithSet:
 
(id) - initWithSet:copyItems:
 
(BOOL) - intersectsSet:
 
(BOOL) - isEqual:
 
(BOOL) - isEqualToSet:
 
(BOOL) - isSubsetOfSet:
 
(void) - makeObjectsPerformSelector:
 
(void) - makeObjectsPerformSelector:withObject:
 
(void) - makeObjectsPerformSelector:withObjects:
 
(id) - member:
 
(id) - mutableCopy
 
(CPEnumerator- objectEnumerator
 
(CPSet- objectsPassingTest:
 
(id) - setByAddingObject:
 
(id) - setByAddingObjectsFromArray:
 
(id) - setByAddingObjectsFromSet:
 
(void) - setValue:forKey:
 
(CPArray- sortedArrayUsingDescriptors:
 
(id) - valueForKey:
 
(id) - valueForKeyPath:
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context:
 
(void) - applyChange:toKeyPath:
 
(id) - autorelease
 
(id) - awakeAfterUsingCoder:
 
(void) - awakeFromCib
 
(void) - bind:toObject:withKeyPath:options:
 
(Class) - classForCoder
 
(Class) - classForKeyedArchiver
 
(CPString- className
 
(void) - dealloc
 
(CPDictionary- dictionaryWithValuesForKeys:
 
(void) - didChange:valuesAtIndexes:forKey:
 
(void) - didChangeValueForKey:
 
(void) - didChangeValueForKey:withSetMutation:usingObjects:
 
(void) - doesNotRecognizeSelector:
 
(CPArray- exposedBindings
 
(id) - forwardingTargetForSelector:
 
(void) - forwardInvocation:
 
(unsigned) - hash
 
(BOOL) - implementsSelector:
 
(CPDictionary- infoForBinding:
 
(BOOL) - isEqual:
 
(BOOL) - isKindOfClass:
 
(BOOL) - isMemberOfClass:
 
(BOOL) - isProxy
 
(IMP) - methodForSelector:
 
(CPMethodSignature) - methodSignatureForSelector:
 
(id) - mutableArrayValueForKey:
 
(id) - mutableArrayValueForKeyPath:
 
(id) - mutableSetValueForKey:
 
(id) - mutableSetValueForKeyPath:
 
(id) - performSelector:
 
(id) - performSelector:withObject:
 
(id) - performSelector:withObject:withObject:
 
(id) - performSelector:withObjects:
 
(void) - release
 
(void) - removeObserver:forKeyPath:
 
(id) - replacementObjectForArchiver:
 
(id) - replacementObjectForCoder:
 
(id) - replacementObjectForKeyedArchiver:
 
(BOOL) - respondsToSelector:
 
(id) - retain
 
(id) - self
 
(void) - setValue:forKeyPath:
 
(void) - setValue:forUndefinedKey:
 
(void) - setValuesForKeysWithDictionary:
 
(CPString- UID
 
(void) - unbind:
 
(Class) - valueClassForBinding:
 
(id) - valueForUndefinedKey:
 
(void) - willChange:valuesAtIndexes:forKey:
 
(void) - willChangeValueForKey:
 
(void) - willChangeValueForKey:withSetMutation:usingObjects:
 

Class Methods

(id) + setWithCapacity:
 
- Class Methods inherited from CPSet
(id) + alloc
 
(id) + set
 
(id) + setWithArray:
 
(id) + setWithObject:
 
(id) + setWithObjects:
 
(id) + setWithObjects:count:
 
(id) + setWithSet:
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(Class) + class
 
(void) + exposeBinding:
 
(void) + initialize
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isSubclassOfClass:
 
(CPSet+ keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 

Additional Inherited Members

- Instance Variables inherited from CPObject
Class isa
 

Detailed Description

This class is just an empty subclass of CPSet. CPSet already implements mutable methods and this class only exists for source compatability.

CPSet is a data structure for storing an an unordered collection of unique objects. Sets have O(1) insertion/lookup/deletion time complexity.

Definition at line 2 of file CPMutableSet.h.

Method Documentation

- (void) addObjectsFromArray: (CPArray objects
implementation

Adds to the receiver each object contained in a given array that is not already a member.

Parameters
arrayAn array of objects to add to the receiver.

Definition at line 83 of file CPMutableSet.j.

- (void) filterUsingPredicate: (CPPredicate aPredicate
implementation

Returns a set filtered using a given predicate. aPredicate a CPPredicate object used to filter the objects in the set.

Reimplemented from CPSet.

Definition at line 35 of file CPMutableSet.j.

- (id) initWithCapacity: (unsigned)  aCapacity
implementation

Returns an initialized set with a given initial capacity.

Parameters
aCapacity,onlypresent for compatability

Definition at line 18 of file CPMutableSet.j.

- (void) intersectSet: (CPSet aSet
implementation

Removes from the receiver each object that isn't a member of another given set.

Parameters
setThe set with which to perform the intersection.

Definition at line 121 of file CPMutableSet.j.

- (void) minusSet: (CPSet aSet
implementation

Removes from the receiver each object contained in another given set that is present in the receiver.

Parameters
setThe set of objects to remove from the receiver.

Definition at line 108 of file CPMutableSet.j.

- (void) removeAllObjects
implementation

Removes all the objects from the set.

Definition at line 70 of file CPMutableSet.j.

- (void) removeObject: (id)  anObject
implementation

Removes an object from the set.

Parameters
anObjectthe object to remove from the set. If the object is not in the set, the method will not modify the set.

Definition at line 49 of file CPMutableSet.j.

- (void) removeObjectsInArray: (CPArray anArray
implementation

Removes an array of objects from the set.

Parameters
anArrayan array of object to remove from the set.

Definition at line 58 of file CPMutableSet.j.

- (void) setSet: (CPSet aSet
implementation

Empties the receiver, then adds to the receiver each object contained in another given set.

Parameters
setThe set whose members replace the receiver's content.

Definition at line 141 of file CPMutableSet.j.

+ (id) setWithCapacity: (CPUInteger)  aCapacity
implementation

Creates and returns a set with a given initial capacity.

Parameters
aCapacity,onlypresent for compatability

Definition at line 27 of file CPMutableSet.j.

- (void) unionSet: (CPSet aSet
implementation

Adds to the receiver each object contained in another given set

Parameters
setThe set of objects to add to the receiver.

Definition at line 95 of file CPMutableSet.j.


The documentation for this class was generated from the following files: