Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MapInletMapOutlet<KI, KO, VI, VO, I, O>

Type parameters

  • KI

  • KO

  • VI

  • VO

  • I

  • O

Hierarchy

  • MapInlet<KI, VI, I>
  • MapOutlet<KO, VO, O>
    • MapInletMapOutlet

Implemented by

Index

Methods

bindInput

  • bindInput(input: Outlet<I> | null): void

bindOutput

  • bindOutput(output: Inlet<O>): void
  • Adds an output to the set of Inlets that depend on the state of this Outlet. The output will be invalidated when the state of this Outlet is invalidated, and updated when this Outlet is updated.

    Parameters

    • output: Inlet<O>

    Returns void

disconnectInputs

  • disconnectInputs(): void

disconnectOutputs

  • disconnectOutputs(): void

filter

get

  • get(): O | undefined
  • get(key: KO): VO | undefined

has

  • has(key: KO): boolean

input

  • input(): Outlet<I> | null

invalidateInput

  • invalidateInput(): void

invalidateInputKey

  • invalidateInputKey(key: KO, effect: KeyEffect): void

invalidateOutput

  • invalidateOutput(): void
  • Marks this Inlet—and the Streamlet to which this Inlet is attached—as having stale state. Invalidating an Inlet will recursively invalidate all streamlets that transitively depend on the state of this Inlet. Invalidating an Inlet does not cause its state to be recomputed. A subsequent reconcileOutput call will reconcile the state of the Inlet.

    Returns void

invalidateOutputKey

  • invalidateOutputKey(key: KI, effect: KeyEffect): void

keyIterator

map

memoize

  • memoize(): MapOutlet<KO, VO, O>

outlet

  • outlet(key: KO): Outlet<VO>

outputIterator

reconcileInput

  • reconcileInput(version: number): void

reconcileInputKey

  • reconcileInputKey(key: KO, version: number): void

reconcileOutput

  • reconcileOutput(version: number): void

reconcileOutputKey

  • reconcileOutputKey(key: KI, version: number): void

reduce

  • reduce<U>(identity: U, accumulator: (result: U, element: VO) => U, combiner: (result: U, result2: U) => U): Outlet<U>
  • Type parameters

    • U

    Parameters

    • identity: U
    • accumulator: (result: U, element: VO) => U
        • (result: U, element: VO): U
        • Parameters

          • result: U
          • element: VO

          Returns U

    • combiner: (result: U, result2: U) => U
        • (result: U, result2: U): U
        • Parameters

          • result: U
          • result2: U

          Returns U

    Returns Outlet<U>

unbindInput

  • unbindInput(): void

unbindOutput

  • unbindOutput(output: Inlet<O>): void

unbindOutputs

  • unbindOutputs(): void

watch