Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/collections
STree
Class STree<V, I>
Type parameters
V =
unknown
I =
unknown
Hierarchy
STreeContext
<
V
,
I
>
STree
Index
Constructors
constructor
Properties
root
Accessors
length
page
Split
Size
Methods
clear
clone
compare
copy
drop
entries
for
Each
get
get
Entry
identify
insert
is
Empty
keys
lookup
move
page
Should
Merge
page
Should
Split
pop
push
remove
reverse
Entries
reverse
Keys
reverse
Values
set
shift
splice
take
unshift
values
Constructors
constructor
new STree<V, I>
(
root
?:
STreePage
<
V
,
I
>
)
:
STree
<
V
,
I
>
Type parameters
V =
unknown
I =
unknown
Parameters
Optional
root:
STreePage
<
V
,
I
>
Returns
STree
<
V
,
I
>
Properties
root
root
:
STreePage
<
V
,
I
>
Accessors
length
get
length
(
)
:
number
Returns
number
page
Split
Size
get
pageSplitSize
(
)
:
number
set
pageSplitSize
(
pageSplitSize
:
number
)
:
any
Returns
number
Parameters
pageSplitSize:
number
Returns
any
Methods
clear
clear
(
)
:
void
Returns
void
clone
clone
(
)
:
STree
<
V
,
I
>
Returns
STree
<
V
,
I
>
compare
compare
(
x
:
I
, y
:
I
)
:
number
Parameters
x:
I
y:
I
Returns
number
Protected
copy
copy
(
root
:
STreePage
<
V
,
I
>
)
:
STree
<
V
,
I
>
Parameters
root:
STreePage
<
V
,
I
>
Returns
STree
<
V
,
I
>
drop
drop
(
lower
:
number
)
:
STree
<
V
,
I
>
Parameters
lower:
number
Returns
STree
<
V
,
I
>
entries
entries
(
)
:
Cursor
<
[
I
,
V
]
>
Returns
Cursor
<
[
I
,
V
]
>
for
Each
for
Each<T>
(
callback
:
(
value
:
V
, index
:
number
, id
:
I
)
=>
void
|
T
)
:
undefined
|
T
for
Each<T, S>
(
callback
:
(
value
:
V
, index
:
number
, id
:
I
)
=>
void
|
T
, thisArg
:
S
)
:
undefined
|
T
Type parameters
T
Parameters
callback:
(
value
:
V
, index
:
number
, id
:
I
)
=>
void
|
T
(
value
:
V
, index
:
number
, id
:
I
)
:
void
|
T
Parameters
value:
V
index:
number
id:
I
Returns
void
|
T
Returns
undefined
|
T
Type parameters
T
S
Parameters
callback:
(
value
:
V
, index
:
number
, id
:
I
)
=>
void
|
T
(
value
:
V
, index
:
number
, id
:
I
)
:
void
|
T
Parameters
value:
V
index:
number
id:
I
Returns
void
|
T
thisArg:
S
Returns
undefined
|
T
get
get
(
index
:
number
, id
?:
I
)
:
undefined
|
V
Parameters
index:
number
Optional
id:
I
Returns
undefined
|
V
get
Entry
get
Entry
(
index
:
number
, id
?:
I
)
:
undefined
|
[
I
,
V
]
Parameters
index:
number
Optional
id:
I
Returns
undefined
|
[
I
,
V
]
identify
identify
(
value
:
V
)
:
I
Parameters
value:
V
Returns
I
insert
insert
(
index
:
number
, newValue
:
V
, id
?:
I
)
:
STree
<
V
,
I
>
Parameters
index:
number
newValue:
V
Optional
id:
I
Returns
STree
<
V
,
I
>
is
Empty
is
Empty
(
)
:
boolean
Returns
boolean
keys
keys
(
)
:
Cursor
<
I
>
Returns
Cursor
<
I
>
lookup
lookup
(
id
:
I
, start
?:
number
)
:
number
Parameters
id:
I
Optional
start:
number
Returns
number
move
move
(
fromIndex
:
number
, toIndex
:
number
, id
?:
I
)
:
STree
<
V
,
I
>
Parameters
fromIndex:
number
toIndex:
number
Optional
id:
I
Returns
STree
<
V
,
I
>
page
Should
Merge
page
Should
Merge
(
page
:
STreePage
<
V
,
I
>
)
:
boolean
Parameters
page:
STreePage
<
V
,
I
>
Returns
boolean
page
Should
Split
page
Should
Split
(
page
:
STreePage
<
V
,
I
>
)
:
boolean
Parameters
page:
STreePage
<
V
,
I
>
Returns
boolean
pop
pop
(
)
:
undefined
|
V
Returns
undefined
|
V
push
push
(
...
newValues
:
V
[]
)
:
number
Parameters
Rest
...
newValues:
V
[]
Returns
number
remove
remove
(
index
:
number
, id
?:
I
)
:
STree
<
V
,
I
>
Parameters
index:
number
Optional
id:
I
Returns
STree
<
V
,
I
>
reverse
Entries
reverse
Entries
(
)
:
Cursor
<
[
I
,
V
]
>
Returns
Cursor
<
[
I
,
V
]
>
reverse
Keys
reverse
Keys
(
)
:
Cursor
<
I
>
Returns
Cursor
<
I
>
reverse
Values
reverse
Values
(
)
:
Cursor
<
V
>
Returns
Cursor
<
V
>
set
set
(
index
:
number
, newValue
:
V
, id
?:
I
)
:
STree
<
V
,
I
>
Parameters
index:
number
newValue:
V
Optional
id:
I
Returns
STree
<
V
,
I
>
shift
shift
(
)
:
undefined
|
V
Returns
undefined
|
V
splice
splice
(
start
:
number
, deleteCount
?:
number
,
...
newValues
:
V
[]
)
:
V
[]
Parameters
start:
number
Optional
deleteCount:
number
Rest
...
newValues:
V
[]
Returns
V
[]
take
take
(
upper
:
number
)
:
STree
<
V
,
I
>
Parameters
upper:
number
Returns
STree
<
V
,
I
>
unshift
unshift
(
...
newValues
:
V
[]
)
:
number
Parameters
Rest
...
newValues:
V
[]
Returns
number
values
values
(
)
:
Cursor
<
V
>
Returns
Cursor
<
V
>
Modules
@swim/system
@swim/core
@swim/util
@swim/codec
@swim/mapping
@swim/collections
@swim/constraint
@swim/structure
@swim/streamlet
@swim/dataflow
@swim/recon
@swim/uri
@swim/math
@swim/geo
@swim/time
@swim/mesh
@swim/toolkit
BTree
BTree
Context
BTree
Leaf
BTree
Node
BTree
Node
Cursor
BTree
Page
Keys
Cursor
Node
Cursor
STree
constructor
root
length
page
Split
Size
clear
clone
compare
copy
drop
entries
for
Each
get
get
Entry
identify
insert
is
Empty
keys
lookup
move
page
Should
Merge
page
Should
Split
pop
push
remove
reverse
Entries
reverse
Keys
reverse
Values
set
shift
splice
take
unshift
values
STree
Context
STree
Leaf
STree
Node
STree
Node
Cursor
STree
Page
Values
Cursor
Generated using
TypeDoc