Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapRow<K, V>

Type parameters

Hierarchy

  • Row<K["TValue"], V["TValue"] | null>
    • MapRow

Implements

  • Map<K["TValue"], V["TValue"] | null>

Index

Constructors

constructor

  • new MapRow(slice: Vector<Struct<object>>): MapRow

Properties

__@toStringTag

__@toStringTag: string

size

size: number

Methods

__@iterator

  • __@iterator(): IterableIterator<[K["TValue"], V["TValue"] | null]>
  • Returns IterableIterator<[K["TValue"], V["TValue"] | null]>

__computed

  • __computed(): string

clear

  • clear(): void

delete

  • delete(_: K["TValue"]): boolean
  • Parameters

    • _: K["TValue"]

    Returns boolean

entries

  • entries(): IterableIterator<[K, V]>
  • Returns IterableIterator<[K, V]>

forEach

  • forEach(callbackfn: function, thisArg: any): void
  • Parameters

    • callbackfn: function
        • (value: V["TValue"] | null, key: K["TValue"], map: Map<K["TValue"], V["TValue"] | null>): void
        • Parameters

          • value: V["TValue"] | null
          • key: K["TValue"]
          • map: Map<K["TValue"], V["TValue"] | null>

          Returns void

    • Optional thisArg: any

    Returns void

get

  • get(key: K["TValue"]): undefined | V
  • Parameters

    • key: K["TValue"]

    Returns undefined | V

getIndex

  • getIndex(key: K["TValue"]): number
  • Parameters

    • key: K["TValue"]

    Returns number

getKey

  • getKey(idx: number): K["TValue"]
  • Parameters

    • idx: number

    Returns K["TValue"]

getValue

  • getValue(index: number): V["TValue"] | null
  • Parameters

    • index: number

    Returns V["TValue"] | null

has

  • has(key: K["TValue"]): boolean
  • Parameters

    • key: K["TValue"]

    Returns boolean

inspect

  • inspect(): string

keys

  • keys(): IterableIterator<any>

set

  • set(key: K["TValue"], val: V["TValue"] | null): this
  • Parameters

    • key: K["TValue"]
    • val: V["TValue"] | null

    Returns this

setValue

  • setValue(index: number, value: V["TValue"] | null): void
  • Parameters

    • index: number
    • value: V["TValue"] | null

    Returns void

toArray

  • toArray(): V[]

toJSON

  • toJSON(): any

toString

  • toString(): string

values

  • values(): IterableIterator<any>

Generated using TypeDoc