Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DBst<T>

Type parameters

Hierarchy

  • DBst

Index

Properties

Optional bst_root

bst_root: T = undefined

Methods

add

  • add(node: T): T

operateOnAll

  • operateOnAll(cb: (data: T) => void): void
  • Parameters

    • cb: (data: T) => void
        • (data: T): void
        • Parameters

          • data: T

          Returns void

    Returns void

remove

  • remove(value: number, filter?: (data: T) => boolean): T[]
  • Parameters

    • value: number
    • Default value filter: (data: T) => boolean = (): boolean => true
        • (data: T): boolean
        • Parameters

          • data: T

          Returns boolean

    Returns T[]

search

selfTest

  • selfTest(): void

toString

  • toString(): string

Generated using TypeDoc