MCOIndexSet Class Reference
Inherits from | NSObject |
Conforms to | NSCoding NSCopying |
Declared in | MCOIndexSet.h MCOIndexSet.mm |
Overview
similar to NSMutableIndexSet but supports int64_t. MCORange has a location (uint64_t) and length (uint64_t).
Class Methods
Instance Methods
addIndex:
Adds an integer to the index set.
- (void)addIndex:(uint64_t)idx
Declared In
MCOIndexSet.h
addIndexSet:
Adds all indexes from an other index set to the index set.
- (void)addIndexSet:(MCOIndexSet *)indexSet
Declared In
MCOIndexSet.h
addRange:
Adds a range of integers to the index set.
- (void)addRange:(MCORange)range
Declared In
MCOIndexSet.h
allRanges
Returns all the ranges of ths index set.
- (MCORange *)allRanges
Declared In
MCOIndexSet.h
containsIndex:
Returns YES if the index set contains the given integer.
- (BOOL)containsIndex:(uint64_t)idx
Declared In
MCOIndexSet.h
count
Returns the number of integers in that index set.
- (unsigned int)count
Declared In
MCOIndexSet.h
enumerateIndexes:
Enumerates all the indexes of the index set.
- (void)enumerateIndexes:(void ( ^ ) ( uint64_t idx ))block
Declared In
MCOIndexSet.h
intersectsIndexSet:
Removes all integers that are not in the given index set.
- (void)intersectsIndexSet:(MCOIndexSet *)indexSet
Declared In
MCOIndexSet.h
intersectsRange:
Removes all integers that are not in the given range.
- (void)intersectsRange:(MCORange)range
Declared In
MCOIndexSet.h
nsIndexSet
Returns an NSIndexSet from a MCOIndexSet
- (NSIndexSet *)nsIndexSet
Declared In
MCOIndexSet.h
rangesCount
Returns the number of ranges in this index set.
- (unsigned int)rangesCount
Declared In
MCOIndexSet.h
removeIndex:
Removes an integer from the index set.
- (void)removeIndex:(uint64_t)idx
Declared In
MCOIndexSet.h