API  0.9.7
 All Classes Files Functions Variables Macros Groups 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:
 

Class Methods

(id) + setWithCapacity:
 

Detailed Description

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

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.

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: