Search
Preparing search index...
The search index is not available
swimOS
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
@swim/streamlet
MapInput
Class MapInput<K, V>
Type parameters
K
V
Hierarchy
AbstractMapOutlet
<
K
,
V
,
Map
<
K
,
V
>
>
MapInput
Implements
MapOutlet
<
K
,
V
,
Map
<
K
,
V
>
>
Index
Constructors
constructor
Methods
bind
Output
delete
did
Invalidate
Input
did
Invalidate
Input
Key
did
Reconcile
Input
did
Reconcile
Input
Key
disconnect
Inputs
disconnect
Outputs
filter
get
has
invalidate
Input
invalidate
Input
Key
key
Iterator
map
memoize
on
Invalidate
Input
on
Invalidate
Input
Key
on
Reconcile
Input
on
Reconcile
Input
Key
outlet
output
Iterator
reconcile
Input
reconcile
Input
Key
reduce
set
unbind
Output
unbind
Outputs
watch
will
Invalidate
Input
will
Invalidate
Input
Key
will
Reconcile
Input
will
Reconcile
Input
Key
Constructors
constructor
new
Map
Input
(
state
?:
BTree
<
K
,
V
>
)
:
MapInput
Parameters
Default value
state:
BTree
<
K
,
V
>
= new BTree()
Returns
MapInput
Methods
bind
Output
bind
Output
(
output
:
Inlet
<
Map
<
K
,
V
>
>
)
:
void
Parameters
output:
Inlet
<
Map
<
K
,
V
>
>
Returns
void
delete
delete
(
key
:
K
)
:
this
Parameters
key:
K
Returns
this
Protected
did
Invalidate
Input
did
Invalidate
Input
(
)
:
void
Returns
void
Protected
did
Invalidate
Input
Key
did
Invalidate
Input
Key
(
key
:
K
, effect
:
KeyEffect
)
:
void
Parameters
key:
K
effect:
KeyEffect
Returns
void
Protected
did
Reconcile
Input
did
Reconcile
Input
(
version
:
number
)
:
void
Parameters
version:
number
Returns
void
Protected
did
Reconcile
Input
Key
did
Reconcile
Input
Key
(
key
:
K
, effect
:
KeyEffect
, version
:
number
)
:
void
Parameters
key:
K
effect:
KeyEffect
version:
number
Returns
void
disconnect
Inputs
disconnect
Inputs
(
)
:
void
Returns
void
disconnect
Outputs
disconnect
Outputs
(
)
:
void
Returns
void
filter
filter
(
func
:
FilterFieldsFunction
<
K
,
V
>
)
:
MapOutlet
<
K
,
V
,
Map
<
K
,
V
>
>
Parameters
func:
FilterFieldsFunction
<
K
,
V
>
Returns
MapOutlet
<
K
,
V
,
Map
<
K
,
V
>
>
get
get
(
)
:
Map
<
K
,
V
>
|
undefined
get
(
key
:
K
)
:
V
|
undefined
Returns
Map
<
K
,
V
>
|
undefined
Parameters
key:
K
Returns
V
|
undefined
has
has
(
key
:
K
)
:
boolean
Parameters
key:
K
Returns
boolean
invalidate
Input
invalidate
Input
(
)
:
void
Returns
void
invalidate
Input
Key
invalidate
Input
Key
(
key
:
K
, effect
:
KeyEffect
)
:
void
Parameters
key:
K
effect:
KeyEffect
Returns
void
key
Iterator
key
Iterator
(
)
:
Cursor
<
K
>
Returns
Cursor
<
K
>
map
map<O2>
(
func
:
MapValueFunction
<
Map
<
K
,
V
>
,
O2
>
)
:
Outlet
<
O2
>
map<V2>
(
func
:
MapFieldValuesFunction
<
K
,
V
,
V2
>
)
:
MapOutlet
<
K
,
V2
,
Map
<
K
,
V2
>
>
Type parameters
O2
Parameters
func:
MapValueFunction
<
Map
<
K
,
V
>
,
O2
>
Returns
Outlet
<
O2
>
Type parameters
V2
Parameters
func:
MapFieldValuesFunction
<
K
,
V
,
V2
>
Returns
MapOutlet
<
K
,
V2
,
Map
<
K
,
V2
>
>
memoize
memoize
(
)
:
MapOutlet
<
K
,
V
,
Map
<
K
,
V
>
>
Returns
MapOutlet
<
K
,
V
,
Map
<
K
,
V
>
>
Protected
on
Invalidate
Input
on
Invalidate
Input
(
)
:
void
Returns
void
Protected
on
Invalidate
Input
Key
on
Invalidate
Input
Key
(
key
:
K
, effect
:
KeyEffect
)
:
void
Parameters
key:
K
effect:
KeyEffect
Returns
void
Protected
on
Reconcile
Input
on
Reconcile
Input
(
version
:
number
)
:
void
Parameters
version:
number
Returns
void
Protected
on
Reconcile
Input
Key
on
Reconcile
Input
Key
(
key
:
K
, effect
:
KeyEffect
, version
:
number
)
:
void
Parameters
key:
K
effect:
KeyEffect
version:
number
Returns
void
outlet
outlet
(
key
:
K
)
:
Outlet
<
V
>
Parameters
key:
K
Returns
Outlet
<
V
>
output
Iterator
output
Iterator
(
)
:
Iterator
<
Inlet
<
Map
<
K
,
V
>
>
>
Returns
Iterator
<
Inlet
<
Map
<
K
,
V
>
>
>
reconcile
Input
reconcile
Input
(
version
:
number
)
:
void
Parameters
version:
number
Returns
void
reconcile
Input
Key
reconcile
Input
Key
(
key
:
K
, version
:
number
)
:
void
Parameters
key:
K
version:
number
Returns
void
reduce
reduce<U>
(
identity
:
U
, accumulator
:
function
, combiner
:
function
)
:
Outlet
<
U
>
Type parameters
U
Parameters
identity:
U
accumulator:
function
(
result
:
U
, element
:
V
)
:
U
Parameters
result:
U
element:
V
Returns
U
combiner:
function
(
result
:
U
, result2
:
U
)
:
U
Parameters
result:
U
result2:
U
Returns
U
Returns
Outlet
<
U
>
set
set
(
key
:
K
, newValue
:
V
)
:
V
|
undefined
Parameters
key:
K
newValue:
V
Returns
V
|
undefined
unbind
Output
unbind
Output
(
output
:
Inlet
<
Map
<
K
,
V
>
>
)
:
void
Parameters
output:
Inlet
<
Map
<
K
,
V
>
>
Returns
void
unbind
Outputs
unbind
Outputs
(
)
:
void
Returns
void
watch
watch
(
func
:
WatchValueFunction
<
Map
<
K
,
V
>
>
)
:
this
watch
(
func
:
WatchFieldsFunction
<
K
,
V
>
)
:
this
Parameters
func:
WatchValueFunction
<
Map
<
K
,
V
>
>
Returns
this
Parameters
func:
WatchFieldsFunction
<
K
,
V
>
Returns
this
Protected
will
Invalidate
Input
will
Invalidate
Input
(
)
:
void
Returns
void
Protected
will
Invalidate
Input
Key
will
Invalidate
Input
Key
(
key
:
K
, effect
:
KeyEffect
)
:
void
Parameters
key:
K
effect:
KeyEffect
Returns
void
Protected
will
Reconcile
Input
will
Reconcile
Input
(
version
:
number
)
:
void
Parameters
version:
number
Returns
void
Protected
will
Reconcile
Input
Key
will
Reconcile
Input
Key
(
key
:
K
, effect
:
KeyEffect
, version
:
number
)
:
void
Parameters
key:
K
effect:
KeyEffect
version:
number
Returns
void
Globals
@swim/core
@swim/codec
@swim/collections
@swim/dataflow
@swim/math
@swim/recon
@swim/streamlet
@swim/structure
@swim/time
@swim/uri
@swim/util
@swim/mesh
@swim/ui
@swim/ux
@swim/web
Map
Input
constructor
bind
Output
delete
did
Invalidate
Input
did
Invalidate
Input
Key
did
Reconcile
Input
did
Reconcile
Input
Key
disconnect
Inputs
disconnect
Outputs
filter
get
has
invalidate
Input
invalidate
Input
Key
key
Iterator
map
memoize
on
Invalidate
Input
on
Invalidate
Input
Key
on
Reconcile
Input
on
Reconcile
Input
Key
outlet
output
Iterator
reconcile
Input
reconcile
Input
Key
reduce
set
unbind
Output
unbind
Outputs
watch
will
Invalidate
Input
will
Invalidate
Input
Key
will
Reconcile
Input
will
Reconcile
Input
Key