A collection of unique integers. More...
#import <CPIndexSet.h>
Class Methods | |
(id) | + indexSet |
(id) | + indexSetWithIndex: |
(id) | + indexSetWithIndexesInRange: |
Class Methods inherited from CPObject | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(void) | + cancelPreviousPerformRequestsWithTarget: |
(void) | + cancelPreviousPerformRequestsWithTarget:selector:object: |
(Class) | + class |
(BOOL) | + conformsToProtocol: |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesImplementSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isBindingExclusive: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + object:performSelector:withObject:afterDelay:inModes: |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
A collection of unique integers.
Instances of this class are collections of numbers. Each integer can appear in a collection only once.
Definition at line 2 of file CPIndexSet.h.
|
implementation |
Adds an index to the set.
anIndex | the index to add |
Provided by category CPIndexSet(CPMutableIndexSet).
Definition at line 709 of file CPIndexSet.j.
|
implementation |
Adds indices to the set
anIndexSet | a set of indices to add to the receiver |
Provided by category CPIndexSet(CPMutableIndexSet).
Definition at line 718 of file CPIndexSet.j.
|
implementation |
Adds the range of indices to the set
aRange | the range of numbers to add as indices to the set |
Provided by category CPIndexSet(CPMutableIndexSet).
Definition at line 732 of file CPIndexSet.j.
|
implementation |
Returns YES
if the index set contains the specified index.
anIndex | the index to check for in the set |
YES
if anIndex
is in the receiver index set Definition at line 187 of file CPIndexSet.j.
|
implementation |
Returns YES
if the receiving index set contains all the indices in the argument.
anIndexSet | the set of indices to check for in the receiving index set |
Definition at line 222 of file CPIndexSet.j.
|
implementation |
Returns YES
if the index set contains all the numbers in the specified range.
aRange | the range of numbers to check for in the index set |
Definition at line 196 of file CPIndexSet.j.
|
implementation |
Creates a deep copy of the index set. The returned copy is mutable. The reason for the two copy methods is for source compatibility with GNUStep code.
Reimplemented from CPObject.
Provided by category CPIndexSet(CPCopying).
Definition at line 1058 of file CPIndexSet.j.
|
implementation |
The number of indices in the set
Definition at line 269 of file CPIndexSet.j.
|
implementation |
Returns a human readable string describing the receiver
Reimplemented from CPObject.
Definition at line 449 of file CPIndexSet.j.
|
implementation |
Writes out the index set to the specified coder.
aCoder | the coder to which the index set will be written |
Provided by category CPIndexSet(CPCoding).
Definition at line 1034 of file CPIndexSet.j.
|
implementation |
Definition at line 499 of file CPIndexSet.j.
|
implementation |
Definition at line 487 of file CPIndexSet.j.
|
implementation |
Definition at line 492 of file CPIndexSet.j.
|
implementation |
Return the first index in the set
Definition at line 278 of file CPIndexSet.j.
|
implementation |
Fills up the specified array with numbers from the index set within the specified range. The method stops filling up the array until the aMaxCount
number have been added or the range maximum is reached.
anArray | the array to fill up |
aMaxCount | the maximum number of numbers to adds |
aRangePointer | the range of indices to add |
Definition at line 386 of file CPIndexSet.j.
|
implementation |
Definition at line 639 of file CPIndexSet.j.
|
implementation |
Definition at line 559 of file CPIndexSet.j.
|
implementation |
Definition at line 572 of file CPIndexSet.j.
|
implementation |
Returns the first index value in the receiver which is greater than anIndex
.
Definition at line 301 of file CPIndexSet.j.
|
implementation |
Returns the first index value in the receiver which is greater than or equal to anIndex
.
Definition at line 363 of file CPIndexSet.j.
|
implementation |
Definition at line 580 of file CPIndexSet.j.
|
implementation |
Returns the first index value in the receiver which is less than anIndex
.
Definition at line 332 of file CPIndexSet.j.
|
implementation |
Returns the first index value in the receiver which is less than or equal to anIndex
.
Definition at line 372 of file CPIndexSet.j.
|
implementation |
Definition at line 554 of file CPIndexSet.j.
|
implementation |
Returns a new empty index set.
Definition at line 43 of file CPIndexSet.j.
|
implementation |
Returns a new index set with just one index.
Definition at line 51 of file CPIndexSet.j.
|
implementation |
Returns a new index set with all the numbers in the specified range.
aRange | the range of numbers to add to the index set. |
Definition at line 60 of file CPIndexSet.j.
|
implementation |
Definition at line 564 of file CPIndexSet.j.
|
implementation |
Initializes the receiver
Reimplemented from CPObject.
Definition at line 67 of file CPIndexSet.j.
|
implementation |
Initializes the index set from a coder.
aCoder | the coder from which to read the index set data |
Provided by category CPIndexSet(CPCoding).
Definition at line 1010 of file CPIndexSet.j.
|
implementation |
Initializes the index set with a single index.
Definition at line 76 of file CPIndexSet.j.
|
implementation |
Initializes the index set with numbers from the specified range.
aRange | the range of numbers to add to the index set |
Definition at line 90 of file CPIndexSet.j.
|
implementation |
Initializes the index set with another index set.
anIndexSet | the index set from which to read the initial index set |
Definition at line 115 of file CPIndexSet.j.
|
implementation |
Checks if the receiver contains at least one number in aRange
.
aRange | the range of numbers to check. |
YES
if the receiving index set contains at least one number in the provided range Definition at line 248 of file CPIndexSet.j.
|
implementation |
Determines if anObject
is functionally equivalent to the receiver.
YES
if anObject
is functionally equivalent to the receiver. Reimplemented from CPObject.
Definition at line 134 of file CPIndexSet.j.
|
implementation |
Compares the receiver with the provided index set.
anIndexSet | the index set to compare to |
YES
if the receiver and the index set are functionally equivalent Definition at line 151 of file CPIndexSet.j.
|
implementation |
Returns the last index in the set
Definition at line 289 of file CPIndexSet.j.
|
implementation |
Creates a deep copy of the index set. The returned copy is mutable. The reason for the two copy methods is for source compatibility with GNUStep code.
Reimplemented from CPObject.
Provided by category CPIndexSet(CPCopying).
Definition at line 1069 of file CPIndexSet.j.
|
implementation |
Removes all indices from the set
Provided by category CPIndexSet(CPMutableIndexSet).
Definition at line 827 of file CPIndexSet.j.
|
implementation |
Removes an index from the set
anIndex | the index to remove |
Provided by category CPIndexSet(CPMutableIndexSet).
Definition at line 804 of file CPIndexSet.j.
|
implementation |
Removes the indices from the receiving set.
anIndexSet | the set of indices to remove from the receiver |
Provided by category CPIndexSet(CPMutableIndexSet).
Definition at line 814 of file CPIndexSet.j.
|
implementation |
Removes the indices in the range from the set.
aRange | the range of indices to remove |
Provided by category CPIndexSet(CPMutableIndexSet).
Definition at line 838 of file CPIndexSet.j.
|
implementation |
Shifts the values of indices left or right by a specified amount.
anIndex | the index to start the shifting operation from (inclusive) |
aDelta | the amount and direction to shift. A positive value shifts to the right. A negative value shifts to the left. |
Provided by category CPIndexSet(CPMutableIndexSet).
Definition at line 921 of file CPIndexSet.j.