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)idxDeclared In
MCOIndexSet.haddIndexSet:
Adds all indexes from an other index set to the index set.
- (void)addIndexSet:(MCOIndexSet *)indexSetDeclared In
MCOIndexSet.haddRange:
Adds a range of integers to the index set.
- (void)addRange:(MCORange)rangeDeclared In
MCOIndexSet.hallRanges
Returns all the ranges of ths index set.
- (MCORange *)allRangesDeclared In
MCOIndexSet.hcontainsIndex:
Returns YES if the index set contains the given integer.
- (BOOL)containsIndex:(uint64_t)idxDeclared In
MCOIndexSet.hcount
Returns the number of integers in that index set.
- (unsigned int)countDeclared In
MCOIndexSet.henumerateIndexes:
Enumerates all the indexes of the index set.
- (void)enumerateIndexes:(void ( ^ ) ( uint64_t idx ))blockDeclared In
MCOIndexSet.hintersectsIndexSet:
Removes all integers that are not in the given index set.
- (void)intersectsIndexSet:(MCOIndexSet *)indexSetDeclared In
MCOIndexSet.hintersectsRange:
Removes all integers that are not in the given range.
- (void)intersectsRange:(MCORange)rangeDeclared In
MCOIndexSet.hnsIndexSet
Returns an NSIndexSet from a MCOIndexSet
- (NSIndexSet *)nsIndexSetDeclared In
MCOIndexSet.hrangesCount
Returns the number of ranges in this index set.
- (unsigned int)rangesCountDeclared In
MCOIndexSet.hremoveIndex:
Removes an integer from the index set.
- (void)removeIndex:(uint64_t)idxDeclared In
MCOIndexSet.h