![]() |
API
0.9.7
|
A collection of unique integers. More...
#import <CPIndexSet.h>
Class Methods | |
(id) | + indexSet |
(id) | + indexSetWithIndex: |
(id) | + indexSetWithIndexesInRange: |
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 710 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 719 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 733 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 188 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 223 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 197 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.
Provided by category CPIndexSet(CPCopying).
Definition at line 1060 of file CPIndexSet.j.
|
implementation |
The number of indices in the set
Definition at line 270 of file CPIndexSet.j.
|
implementation |
Definition at line 450 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 1036 of file CPIndexSet.j.
|
implementation |
Definition at line 500 of file CPIndexSet.j.
|
implementation |
Definition at line 488 of file CPIndexSet.j.
|
implementation |
Definition at line 493 of file CPIndexSet.j.
|
implementation |
Return the first index in the set
Definition at line 279 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 387 of file CPIndexSet.j.
|
implementation |
Definition at line 640 of file CPIndexSet.j.
|
implementation |
Definition at line 560 of file CPIndexSet.j.
|
implementation |
Definition at line 573 of file CPIndexSet.j.
|
implementation |
Returns the first index value in the receiver which is greater than anIndex
.
Definition at line 302 of file CPIndexSet.j.
|
implementation |
Returns the first index value in the receiver which is greater than or equal to anIndex
.
Definition at line 364 of file CPIndexSet.j.
|
implementation |
Definition at line 581 of file CPIndexSet.j.
|
implementation |
Returns the first index value in the receiver which is less than anIndex
.
Definition at line 333 of file CPIndexSet.j.
|
implementation |
Returns the first index value in the receiver which is less than or equal to anIndex
.
Definition at line 373 of file CPIndexSet.j.
|
implementation |
Definition at line 555 of file CPIndexSet.j.
|
implementation |
Returns a new empty index set.
Definition at line 44 of file CPIndexSet.j.
|
implementation |
Returns a new index set with just one index.
Definition at line 52 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 61 of file CPIndexSet.j.
|
implementation |
Definition at line 565 of file CPIndexSet.j.
|
implementation |
Definition at line 68 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 1011 of file CPIndexSet.j.
|
implementation |
Initializes the index set with a single index.
Definition at line 77 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 91 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 116 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 249 of file CPIndexSet.j.
|
implementation |
Definition at line 135 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 152 of file CPIndexSet.j.
|
implementation |
Returns the last index in the set
Definition at line 290 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.
Provided by category CPIndexSet(CPCopying).
Definition at line 1071 of file CPIndexSet.j.
|
implementation |
Removes all indices from the set
Provided by category CPIndexSet(CPMutableIndexSet).
Definition at line 828 of file CPIndexSet.j.
|
implementation |
Removes an index from the set
anIndex | the index to remove |
Provided by category CPIndexSet(CPMutableIndexSet).
Definition at line 805 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 815 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 839 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 922 of file CPIndexSet.j.