Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UnionView<T>

Type parameters

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected _children

_children: Vector<any>[]

childData

childData: Data<any>[]

length

length: number

numChildren

numChildren: number

typeIds

typeIds: Int8Array

Optional valueOffsets

valueOffsets: Int32Array

Methods

__@iterator

  • __@iterator(): IterableIterator<T["TValue"]>

clone

  • clone(data: Data<T>): this

get

  • get(index: number): T["TValue"]

getChildAt

  • getChildAt<R>(index: number): Vector<R> | null

Protected getChildValue

  • getChildValue(self: NestedView<T>, index: number, typeIds: Int8Array, _valueOffsets?: any): any | null

Protected getNested

  • getNested(self: UnionView<T>, index: number): T["TValue"]

indexOf

  • indexOf(_: T["TValue"]): number

isValid

  • isValid(): boolean

set

  • set(index: number, value: T["TValue"]): void

Protected setChildValue

  • setChildValue(self: NestedView<T>, index: number, value: T["TValue"], typeIds: Int8Array, _valueOffsets?: any): any | null
  • Parameters

    • self: NestedView<T>
    • index: number
    • value: T["TValue"]
    • typeIds: Int8Array
    • Optional _valueOffsets: any

    Returns any | null

Protected setNested

  • setNested(self: UnionView<T>, index: number, value: T["TValue"]): void

toArray

toJSON

  • toJSON(): any

toString

  • toString(): string

Generated using TypeDoc