Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RelinkableHandle<T>

Relinkable handle to an observable

An instance of this class can be relinked so that it points to another observable. The change will be propagated to all handles that were created as copies of such instance.

Class T must inherit from Observable

warning see the Handle documentation for issues relatives to registerAsObserver.

Type parameters

Hierarchy

Implements

Index

Classes

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • Default value p: T = null
    • Default value registerAsObserver: boolean = true

    Returns RelinkableHandle

Properties

Protected _link

_link: Link<T>

Methods

currentLink

  • currentLink(): T
  • dereferencing

    Returns T

empty

  • empty(): boolean
  • checks if the contained shared pointer points to anything

    Returns boolean

f

  • allows registration as observable

    Returns Link<T>

linkTo

  • linkTo(h: T, registerAsObserver?: boolean): void
  • Parameters

    • h: T
    • Default value registerAsObserver: boolean = true

    Returns void