Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MemberPtr<T, K>

Designed to emulate pointers to members of an object. This is useful inside the B-trees. This should not be used like a C pointer: If the value in the destination object changes, so does the value reported by this object.

template

T - The container object type.

template

K - The key inside the object.

Type parameters

  • T

  • K: keyof T

Hierarchy

  • MemberPtr

Index

Constructors

Properties

Accessors

Constructors

constructor

  • Parameters

    • obj: T

      The object with the member to reference.

    • key: K

      The key of the reference inside the object.

    Returns MemberPtr

Properties

Private key

key: K

Private obj

obj: T

Accessors

value

  • get value(): T[K]
  • set value(val: T[K]): void
  • The value of the 'pointer.'

    Returns T[K]

  • The value of the 'pointer.'

    Parameters

    • val: T[K]

    Returns void

Generated using TypeDoc