rfm@gnu.org
)Copyright: (C) 2004 Free Software Foundation, Inc.
- Declared in:
- Foundation/NSIndexSet.h
- Conforms to:
- NSCopying
- NSMutableCopying
- NSCoding
Standards:
- MacOS-X
- NotOpenStep
- GNUstep
NOT YET FULLY IMPLEMENTED/TESTED
Instances of this class are collections of unsigned
integers in the range 0 to NSNotFound-1.
Each
integer can appear in a collection only once.
Return an empty set.
Return a set containing the single value
anIndex, or returns nil
if
anIndex is NSNotFound.
Return a set containing all the values in
aRange, or returns nil
if
aRange contains NSNotFound.
Returns YES
if the receiver contains
anIndex, NO
otherwise.
Returns YES
if the receiver contains
all the index values present in aSet,
NO
otherwise.
Returns YES
if the receiver contains
all the index values present in aRange,
NO
otherwise.
Returns the number of index values present in the receiver.
Returns the first index value in the receiver or NSNotFound if the receiver is empty.
Copies index values into aBuffer until
there are no index values left or aBuffer
is full (assuming that the size of aBuffer is
given by aCount).
Only copies index
values present in aRange and copies them
in order.
Returns the number of index values
placed in aVuffer.
Modifies aRange
to start after the last index value copied.
If
aRange is a null pointer, this method
attempts to get all index values from the
set (and of course no range can be returned in it).
Return the first index value in the receiver which is greater than anIndex.
Return the first index value in the receiver which is greater than or equal to anIndex.
Return the first index value in the receiver which is less than anIndex.
Return the first index value in the receiver which is less than or equal to anIndex.
Initialise the receiver to contain
anIndex. Returns the initialised object or
nil
if anIndex is
NSNotFound.
Initialises the receiver with the index values from aSet.
Initialise the receiver to contain all index
values in aRange. Returns the initialised
object or nil
if aRange
contains NSNotFound.
Returns YES
if the receiver contains
any index values which lie in aRange, No
otherwise.
Tests two index sets for equality and returns either
YES
or NO
.
Returns the last index value in the receiver or NSNotFound if the receiver is empty.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
- Declared in:
- Foundation/NSIndexSet.h
Standards:
- MacOS-X
- NotOpenStep
- GNUstep
Description forthcoming.
Method summaryAdds anIndex to the set of indexes stored in the receiver.
Adds all the indexes from aSet to the set of indexes stored in the receiver.
Adds all the indexes in aRange to the set of indexes stored in the receiver.
Removes all indexes stored in the receiver.
Removes anIndex from the set of indexes stored in the receiver.
Removes all the indexes in aSet from the set of indexes stored in the receiver.
Removes all the indexes in aRange from the set of indexes stored in the receiver.
Not implemented.
Moves all the indexes from
anIndex upwards by the amount
specified.
If amount is
negative, index values below anIndex
will be overwritten by the shifted values.
If
amount is positive, a 'hole' will be left
in the index range after anIndex.