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

indexSet

Creates an empty index set.

+ (MCOIndexSet *)indexSet

Declared In

MCOIndexSet.h

indexSetWithIndex:

Creates an index set with a single integer.

+ (MCOIndexSet *)indexSetWithIndex:(uint64_t)idx

Declared In

MCOIndexSet.h

indexSetWithRange:

Creates an index set that contains a range of integers.

+ (MCOIndexSet *)indexSetWithRange:(MCORange)range

Declared In

MCOIndexSet.h

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

removeIndexSet:

Remove all indexes from an other index set from the index set.

- (void)removeIndexSet:(MCOIndexSet *)indexSet

Declared In

MCOIndexSet.h

removeRange:

Removes a range of integers from the index set.

- (void)removeRange:(MCORange)range

Declared In

MCOIndexSet.h