Class TreeMultisetNode<T, NEIGHBOR>

Type Parameters

  • T = any

  • NEIGHBOR extends TreeMultisetNode<T, NEIGHBOR> = TreeMultisetNodeNested<T>

Hierarchy

  • AVLTreeNode<T, NEIGHBOR>
    • TreeMultisetNode

Implements

  • ITreeMultisetNode<T, NEIGHBOR>

Constructors

Properties

Accessors

Constructors

  • The constructor function initializes a BinaryTreeNode object with an id, value, and count.

    Type Parameters

    • T = any

    • NEIGHBOR extends TreeMultisetNode<T, NEIGHBOR, NEIGHBOR> = TreeMultisetNodeNested<T>

    Parameters

    • id: number

      The id parameter is of type BinaryTreeNodeId and represents the unique identifier of the binary tree node.

    • Optional val: T

      The val parameter is an optional parameter of type T. It represents the value of the binary tree node. If no value is provided, it will be undefined.

    • Optional count: number

      The count parameter is a number that represents the number of times a particular value occurs in a binary tree node. It has a default value of 1, which means that if no value is provided for the count parameter when creating a new instance of the BinaryTreeNode class,

    Returns TreeMultisetNode<T, NEIGHBOR>

Properties

_count: any

Accessors

  • get count(): number
  • Returns number

  • set count(v): void
  • Parameters

    • v: number

    Returns void

  • get familyPosition(): FamilyPosition
  • The function determines the position of a node in a family tree structure.

    Returns FamilyPosition

    a value of type FamilyPosition.

  • get height(): number
  • Returns number

  • set height(v): void
  • Parameters

    • v: number

    Returns void

  • get id(): number
  • Returns number

  • set id(v): void
  • Parameters

    • v: number

    Returns void

  • get left(): undefined | null | NEIGHBOR
  • Returns undefined | null | NEIGHBOR

  • set left(v): void
  • Parameters

    • v: undefined | null | NEIGHBOR

    Returns void

  • get parent(): undefined | null | NEIGHBOR
  • Returns undefined | null | NEIGHBOR

  • set parent(v): void
  • Parameters

    • v: undefined | null | NEIGHBOR

    Returns void

  • get right(): undefined | null | NEIGHBOR
  • Returns undefined | null | NEIGHBOR

  • set right(v): void
  • Parameters

    • v: undefined | null | NEIGHBOR

    Returns void

  • get val(): undefined | T
  • Returns undefined | T

  • set val(value): void
  • Parameters

    • value: undefined | T

    Returns void

Generated using TypeDoc