Skip to main content
Version: Next

Class: IndexSet

Constructors

new IndexSet()

new IndexSet(values?): IndexSet

Parameters

values?: Iterable<number, any, any>

Returns

IndexSet

Defined in

packages/utilities/src/indexset/IndexSet.ts:13

new IndexSet()

new IndexSet(values?): IndexSet

Parameters

values?: NumericRange

Returns

IndexSet

Defined in

packages/utilities/src/indexset/IndexSet.ts:14

Accessors

count

Get Signature

get count(): number

Returns

number

Defined in

packages/utilities/src/indexset/IndexSet.ts:68

Methods

add()

add(index): void

Parameters

index: number

Returns

void

Defined in

packages/utilities/src/indexset/IndexSet.ts:33


addRange()

addRange(range): void

Parameters

range: NumericRange

Returns

void

Defined in

packages/utilities/src/indexset/IndexSet.ts:39


clear()

clear(): void

Returns

void

Defined in

packages/utilities/src/indexset/IndexSet.ts:217


clone()

clone(): IndexSet

Returns

IndexSet

Defined in

packages/utilities/src/indexset/IndexSet.ts:221


contains()

contains(index): boolean

Parameters

index: number

Returns

boolean

Defined in

packages/utilities/src/indexset/IndexSet.ts:60


differenceWith()

differenceWith(otherSet): IndexSet

Parameters

otherSet: IndexSet

Returns

IndexSet

Defined in

packages/utilities/src/indexset/IndexSet.ts:135


forEachRange()

forEachRange(visitor): void

Parameters

visitor

Returns

void

Defined in

packages/utilities/src/indexset/IndexSet.ts:27


hasIntersectionWith()

hasIntersectionWith(otherSet): boolean

Parameters

otherSet: IndexSet | Set<number>

Returns

boolean

Defined in

packages/utilities/src/indexset/IndexSet.ts:145


hasIntersectionWithMap()

hasIntersectionWithMap(otherMap): boolean

Parameters

otherMap: Map<number, number>

Returns

boolean

Defined in

packages/utilities/src/indexset/IndexSet.ts:163


intersectWith()

intersectWith(otherSet): IndexSet

Parameters

otherSet: IndexSet

Returns

IndexSet

Defined in

packages/utilities/src/indexset/IndexSet.ts:177


invertedRanges()

invertedRanges(): NumericRange[]

Returns

NumericRange[]

Defined in

packages/utilities/src/indexset/IndexSet.ts:105


remove()

remove(index): void

Parameters

index: number

Returns

void

Defined in

packages/utilities/src/indexset/IndexSet.ts:47


removeRange()

removeRange(range): void

Parameters

range: NumericRange

Returns

void

Defined in

packages/utilities/src/indexset/IndexSet.ts:52


toIndexArray()

toIndexArray(): number[]

Returns

number[]

Defined in

packages/utilities/src/indexset/IndexSet.ts:84


toPlainSet()

toPlainSet(): Set<number>

Returns

Set<number>

Defined in

packages/utilities/src/indexset/IndexSet.ts:98


toRangeArray()

toRangeArray(): NumericRange[]

Returns

NumericRange[]

Defined in

packages/utilities/src/indexset/IndexSet.ts:76


unionWith()

unionWith(otherSet): IndexSet

Parameters

otherSet: IndexSet

Returns

IndexSet

Defined in

packages/utilities/src/indexset/IndexSet.ts:123