![]() |
API
0.9.6
|
A collection of unique integers. More...
#import <CPIndexSet.h>
Class Methods | |
(id) | + indexSet |
(id) | + indexSetWithIndex: |
(id) | + indexSetWithIndexesInRange: |
![]() | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(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 | |
![]() | |
Class | isa |
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 708 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 717 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 731 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 186 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 221 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 195 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 1055 of file CPIndexSet.j.
|
implementation |
The number of indices in the set
Definition at line 268 of file CPIndexSet.j.
|
implementation |
Returns a human readable string describing the receiver
Reimplemented from CPObject.
Definition at line 448 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 1031 of file CPIndexSet.j.
|
implementation |
Definition at line 498 of file CPIndexSet.j.
|
implementation |
Definition at line 486 of file CPIndexSet.j.
|
implementation |
Definition at line 491 of file CPIndexSet.j.
|
implementation |
Return the first index in the set
Definition at line 277 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 385 of file CPIndexSet.j.
|
implementation |
Definition at line 638 of file CPIndexSet.j.
|
implementation |
Definition at line 558 of file CPIndexSet.j.
|
implementation |
Definition at line 571 of file CPIndexSet.j.
|
implementation |
Returns the first index value in the receiver which is greater than anIndex
.
Definition at line 300 of file CPIndexSet.j.
|
implementation |
Returns the first index value in the receiver which is greater than or equal to anIndex
.
Definition at line 362 of file CPIndexSet.j.
|
implementation |
Definition at line 579 of file CPIndexSet.j.
|
implementation |
Returns the first index value in the receiver which is less than anIndex
.
Definition at line 331 of file CPIndexSet.j.
|
implementation |
Returns the first index value in the receiver which is less than or equal to anIndex
.
Definition at line 371 of file CPIndexSet.j.
|
implementation |
Definition at line 553 of file CPIndexSet.j.
|
implementation |
Returns a new empty index set.
Definition at line 45 of file CPIndexSet.j.
|
implementation |
Returns a new index set with just one index.
Definition at line 53 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 62 of file CPIndexSet.j.
|
implementation |
Definition at line 563 of file CPIndexSet.j.
|
implementation |
Initializes the receiver
Reimplemented from CPObject.
Definition at line 69 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 1006 of file CPIndexSet.j.
|
implementation |
Initializes the index set with a single index.
Definition at line 78 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 92 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 114 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 247 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 133 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 150 of file CPIndexSet.j.
|
implementation |
Returns the last index in the set
Definition at line 288 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 1066 of file CPIndexSet.j.
|
implementation |
Removes all indices from the set
Provided by category CPIndexSet(CPMutableIndexSet).
Definition at line 823 of file CPIndexSet.j.
|
implementation |
Removes an index from the set
anIndex | the index to remove |
Provided by category CPIndexSet(CPMutableIndexSet).
Definition at line 800 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 810 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 834 of file CPIndexSet.j.
|
implementation |
Provided by category CPIndexSet(tableview).
Definition at line 4936 of file CPTableView.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 917 of file CPIndexSet.j.