API  0.9.10
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

◆ addObjectsFromArray:()

- (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 82 of file CPMutableSet.j.

◆ filterUsingPredicate:()

- (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 34 of file CPMutableSet.j.

◆ initWithCapacity:()

- (id) initWithCapacity: (unsigned)  aCapacity
implementation

Returns an initialized set with a given initial capacity.

Parameters
aCapacity,onlypresent for compatability

Definition at line 17 of file CPMutableSet.j.

◆ intersectSet:()

- (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 120 of file CPMutableSet.j.

◆ minusSet:()

- (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 107 of file CPMutableSet.j.

◆ removeAllObjects()

- (void) removeAllObjects
implementation

Removes all the objects from the set.

Definition at line 69 of file CPMutableSet.j.

◆ removeObject:()

- (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 48 of file CPMutableSet.j.

◆ removeObjectsInArray:()

- (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 57 of file CPMutableSet.j.

◆ setSet:()

- (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 140 of file CPMutableSet.j.

◆ setWithCapacity:()

+ (id) setWithCapacity: (CPUInteger)  aCapacity
implementation

Creates and returns a set with a given initial capacity.

Parameters
aCapacity,onlypresent for compatability

Definition at line 26 of file CPMutableSet.j.

◆ unionSet:()

- (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 94 of file CPMutableSet.j.


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