Options
All
  • Public
  • Public/Protected
  • All
Menu

Class STreeLeaf<V, I>

Type parameters

  • V

  • I

Hierarchy

Index

Constructors

constructor

  • new STreeLeaf<V, I>(slots: readonly [I, V][]): STreeLeaf<V, I>
  • Type parameters

    • V

    • I

    Parameters

    • slots: readonly [I, V][]

    Returns STreeLeaf<V, I>

Properties

Readonly slots

slots: readonly [I, V][]

Accessors

arity

  • get arity(): number
  • Returns number

size

  • get size(): number
  • Returns number

Methods

balanced

drop

  • Parameters

    Returns STreeLeaf<V, I>

entries

  • Returns Cursor<[I, V]>

forEach

  • forEach<T, S>(callback: (value: V, index: number, id: I) => void | T, thisArg: S, offset: number): undefined | T
  • Type parameters

    • T

    • S

    Parameters

    • callback: (value: V, index: number, id: I) => void | T
        • (value: V, index: number, id: I): void | T
        • Parameters

          • value: V
          • index: number
          • id: I

          Returns void | T

    • thisArg: S
    • offset: number

    Returns undefined | T

get

  • get(index: number): undefined | V
  • Parameters

    • index: number

    Returns undefined | V

getEntry

  • getEntry(index: number): undefined | [I, V]
  • Parameters

    • index: number

    Returns undefined | [I, V]

inserted

  • Parameters

    • index: number
    • newValue: V
    • id: undefined | I
    • tree: STreeContext<V, I>

    Returns STreeLeaf<V, I>

insertedItem

  • Parameters

    • index: number
    • newValue: V
    • id: undefined | I
    • tree: STreeContext<V, I>

    Returns STreeLeaf<V, I>

isEmpty

  • isEmpty(): boolean
  • Returns boolean

keys

  • Returns Cursor<I>

removed

  • Parameters

    Returns STreeLeaf<V, I>

removedSlot

  • removedSlot(index: number): STreeLeaf<V, I>
  • Parameters

    • index: number

    Returns STreeLeaf<V, I>

reverseEntries

  • reverseEntries(): Cursor<[I, V]>

reverseKeys

  • Returns Cursor<I>

reverseValues

  • Returns Cursor<V>

split

  • Parameters

    • index: number

    Returns STreeNode<V, I>

splitLeft

  • Parameters

    • index: number

    Returns STreeLeaf<V, I>

splitRight

  • Parameters

    • index: number

    Returns STreeLeaf<V, I>

take

  • Parameters

    Returns STreeLeaf<V, I>

updated

  • Parameters

    Returns STreeLeaf<V, I>

updatedItem

  • updatedItem(index: number, newValue: V): STreeLeaf<V, I>
  • Parameters

    • index: number
    • newValue: V

    Returns STreeLeaf<V, I>

values

  • Returns Cursor<V>

Static empty

  • Type parameters

    • V

    • I

    Returns STreeLeaf<V, I>

Generated using TypeDoc