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
STreeLeaf
Class STreeLeaf<V, I>
Type parameters
V
I
Hierarchy
STreePage
<
V
,
I
>
STreeLeaf
Index
Constructors
constructor
Properties
slots
Accessors
arity
size
Methods
balanced
drop
entries
for
Each
get
get
Entry
inserted
inserted
Item
is
Empty
keys
removed
removed
Slot
reverse
Entries
reverse
Keys
reverse
Values
split
split
Left
split
Right
take
updated
updated
Item
values
empty
Constructors
constructor
new STree
Leaf<V, I>
(
slots
:
readonly
[
I
,
V
]
[]
)
:
STreeLeaf
<
V
,
I
>
Type parameters
V
I
Parameters
slots:
readonly
[
I
,
V
]
[]
Returns
STreeLeaf
<
V
,
I
>
Properties
Readonly
slots
slots
:
readonly
[
I
,
V
]
[]
Accessors
arity
get
arity
(
)
:
number
Returns
number
size
get
size
(
)
:
number
Returns
number
Methods
balanced
balanced
(
tree
:
STreeContext
<
V
,
I
>
)
:
STreePage
<
V
,
I
>
Parameters
tree:
STreeContext
<
V
,
I
>
Returns
STreePage
<
V
,
I
>
drop
drop
(
lower
:
number
, tree
:
STreeContext
<
V
,
I
>
)
:
STreeLeaf
<
V
,
I
>
Parameters
lower:
number
tree:
STreeContext
<
V
,
I
>
Returns
STreeLeaf
<
V
,
I
>
entries
entries
(
)
:
Cursor
<
[
I
,
V
]
>
Returns
Cursor
<
[
I
,
V
]
>
for
Each
for
Each<T, S>
(
callback
:
(
value
:
V
, index
:
number
, id
:
I
)
=>
void
|
T
, thisArg
:
S
, offset
:
number
)
:
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
offset:
number
Returns
undefined
|
T
get
get
(
index
:
number
)
:
undefined
|
V
Parameters
index:
number
Returns
undefined
|
V
get
Entry
get
Entry
(
index
:
number
)
:
undefined
|
[
I
,
V
]
Parameters
index:
number
Returns
undefined
|
[
I
,
V
]
inserted
inserted
(
index
:
number
, newValue
:
V
, id
:
undefined
|
I
, tree
:
STreeContext
<
V
,
I
>
)
:
STreeLeaf
<
V
,
I
>
Parameters
index:
number
newValue:
V
id:
undefined
|
I
tree:
STreeContext
<
V
,
I
>
Returns
STreeLeaf
<
V
,
I
>
inserted
Item
inserted
Item
(
index
:
number
, newValue
:
V
, id
:
undefined
|
I
, tree
:
STreeContext
<
V
,
I
>
)
:
STreeLeaf
<
V
,
I
>
Parameters
index:
number
newValue:
V
id:
undefined
|
I
tree:
STreeContext
<
V
,
I
>
Returns
STreeLeaf
<
V
,
I
>
is
Empty
is
Empty
(
)
:
boolean
Returns
boolean
keys
keys
(
)
:
Cursor
<
I
>
Returns
Cursor
<
I
>
removed
removed
(
index
:
number
, tree
:
STreeContext
<
V
,
I
>
)
:
STreeLeaf
<
V
,
I
>
Parameters
index:
number
tree:
STreeContext
<
V
,
I
>
Returns
STreeLeaf
<
V
,
I
>
removed
Slot
removed
Slot
(
index
:
number
)
:
STreeLeaf
<
V
,
I
>
Parameters
index:
number
Returns
STreeLeaf
<
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
>
split
split
(
index
:
number
)
:
STreeNode
<
V
,
I
>
Parameters
index:
number
Returns
STreeNode
<
V
,
I
>
split
Left
split
Left
(
index
:
number
)
:
STreeLeaf
<
V
,
I
>
Parameters
index:
number
Returns
STreeLeaf
<
V
,
I
>
split
Right
split
Right
(
index
:
number
)
:
STreeLeaf
<
V
,
I
>
Parameters
index:
number
Returns
STreeLeaf
<
V
,
I
>
take
take
(
upper
:
number
, tree
:
STreeContext
<
V
,
I
>
)
:
STreeLeaf
<
V
,
I
>
Parameters
upper:
number
tree:
STreeContext
<
V
,
I
>
Returns
STreeLeaf
<
V
,
I
>
updated
updated
(
index
:
number
, newValue
:
V
, tree
:
STreeContext
<
V
,
I
>
)
:
STreeLeaf
<
V
,
I
>
Parameters
index:
number
newValue:
V
tree:
STreeContext
<
V
,
I
>
Returns
STreeLeaf
<
V
,
I
>
updated
Item
updated
Item
(
index
:
number
, newValue
:
V
)
:
STreeLeaf
<
V
,
I
>
Parameters
index:
number
newValue:
V
Returns
STreeLeaf
<
V
,
I
>
values
values
(
)
:
Cursor
<
V
>
Returns
Cursor
<
V
>
Static
empty
empty<V, I>
(
)
:
STreeLeaf
<
V
,
I
>
Type parameters
V
I
Returns
STreeLeaf
<
V
,
I
>
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
STree
Context
STree
Leaf
constructor
slots
arity
size
balanced
drop
entries
for
Each
get
get
Entry
inserted
inserted
Item
is
Empty
keys
removed
removed
Slot
reverse
Entries
reverse
Keys
reverse
Values
split
split
Left
split
Right
take
updated
updated
Item
values
empty
STree
Node
STree
Node
Cursor
STree
Page
Values
Cursor
Generated using
TypeDoc