Skip to main content
Version: Next

Class: IndexSet

Defined in: packages/utilities/src/indexset/IndexSet.ts:10

Constructors

Constructor

new IndexSet(values?): IndexSet

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

Parameters

values?

Iterable<number, any, any>

Returns

IndexSet

Constructor

new IndexSet(values?): IndexSet

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

Parameters

values?

NumericRange

Returns

IndexSet

Accessors

count

Get Signature

get count(): number

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

Returns

number

Methods

add()

add(index): void

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

Parameters

index

number

Returns

void


addRange()

addRange(range): void

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

Parameters

range

NumericRange

Returns

void


clear()

clear(): void

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

Returns

void


clone()

clone(): IndexSet

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

Returns

IndexSet


contains()

contains(index): boolean

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

Parameters

index

number

Returns

boolean


differenceWith()

differenceWith(otherSet): IndexSet

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

Parameters

otherSet

IndexSet

Returns

IndexSet


forEachRange()

forEachRange(visitor): void

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

Parameters

visitor

(range) => void

Returns

void


hasIntersectionWith()

hasIntersectionWith(otherSet): boolean

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

Parameters

otherSet

IndexSet | Set<number>

Returns

boolean


hasIntersectionWithMap()

hasIntersectionWithMap(otherMap): boolean

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

Parameters

otherMap

Map<number, number>

Returns

boolean


intersectWith()

intersectWith(otherSet): IndexSet

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

Parameters

otherSet

IndexSet

Returns

IndexSet


invertedRanges()

invertedRanges(): NumericRange[]

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

Returns

NumericRange[]


remove()

remove(index): void

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

Parameters

index

number

Returns

void


removeRange()

removeRange(range): void

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

Parameters

range

NumericRange

Returns

void


toIndexArray()

toIndexArray(): number[]

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

Returns

number[]


toPlainSet()

toPlainSet(): Set<number>

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

Returns

Set<number>


toRangeArray()

toRangeArray(): NumericRange[]

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

Returns

NumericRange[]


unionWith()

unionWith(otherSet): IndexSet

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

Parameters

otherSet

IndexSet

Returns

IndexSet