Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DBst<T>

Type parameters

Hierarchy

  • DBst

Index

Properties

Optional bst_root

bst_root: T = undefined

Accessors

all_nodes

  • get all_nodes(): T[]

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

prefSearch

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[]

removeNode

  • removeNode(node: T): void

search

selfTest

  • selfTest(): void

toDeepString

  • toDeepString(): string

toString

  • toString(): string

Generated using TypeDoc