Class: IndexSet
@cognite/reveal.IndexSet
Constructors
constructor
• new IndexSet(values?
)
Parameters
Name | Type |
---|---|
values? | Iterable <number > |
Defined in
packages/utilities/src/indexset/IndexSet.ts:13
• new IndexSet(values?
)
Parameters
Name | Type |
---|---|
values? | NumericRange |
Defined in
packages/utilities/src/indexset/IndexSet.ts:14
Properties
rootNode
• Optional
rootNode: IndexNode
Defined in
packages/utilities/src/indexset/IndexSet.ts:11
Accessors
count
• get
count(): number
Returns
number
Defined in
packages/utilities/src/indexset/IndexSet.ts:68
Methods
add
▸ add(index
): void
Parameters
Name | Type |
---|---|
index | number |
Returns
void
Defined in
packages/utilities/src/indexset/IndexSet.ts:33
addRange
▸ addRange(range
): void
Parameters
Name | Type |
---|---|
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:211
clone
▸ clone(): IndexSet
Returns
Defined in
packages/utilities/src/indexset/IndexSet.ts:215
contains
▸ contains(index
): boolean
Parameters
Name | Type |
---|---|
index | number |
Returns
boolean
Defined in
packages/utilities/src/indexset/IndexSet.ts:60
differenceWith
▸ differenceWith(otherSet
): IndexSet
Parameters
Name | Type |
---|---|
otherSet | IndexSet |
Returns
Defined in
packages/utilities/src/indexset/IndexSet.ts:135
forEachRange
▸ forEachRange(visitor
): void
Parameters
Name | Type |
---|---|
visitor | (range : NumericRange ) => void |
Returns
void
Defined in
packages/utilities/src/indexset/IndexSet.ts:27
hasIntersectionWith
▸ hasIntersectionWith(otherSet
): boolean
Parameters
Name | Type |
---|---|
otherSet | IndexSet | Set <number > | Map <number , number > |
Returns
boolean
Defined in
packages/utilities/src/indexset/IndexSet.ts:145
intersectWith
▸ intersectWith(otherSet
): IndexSet
Parameters
Name | Type |
---|---|
otherSet | IndexSet |
Returns
Defined in
packages/utilities/src/indexset/IndexSet.ts:171
invertedRanges
▸ invertedRanges(): NumericRange
[]
Returns
Defined in
packages/utilities/src/indexset/IndexSet.ts:105
remove
▸ remove(index
): void
Parameters
Name | Type |
---|---|
index | number |
Returns
void
Defined in
packages/utilities/src/indexset/IndexSet.ts:47
removeRange
▸ removeRange(range
): void
Parameters
Name | Type |
---|---|
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
Defined in
packages/utilities/src/indexset/IndexSet.ts:76
unionWith
▸ unionWith(otherSet
): IndexSet
Parameters
Name | Type |
---|---|
otherSet | IndexSet |