Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ChainStore

Chain store

Hierarchy

Indexable

[k: string]: any

Chain store

Index

Constructors

constructor

Properties

_fields

_fields: StoreField[]

chainid

chainid: Uint8Array

chainname

chainname: Uint8Array

count

count: number

entityIndex

entityIndex: Uint16Array

length

length: number

modelIndex

modelIndex: Uint16Array

residueCount

residueCount: Uint32Array

residueOffset

residueOffset: Uint32Array

Accessors

_defaultFields

  • get _defaultFields(): Object[]

Methods

_init

  • _init(size: number): void

_initField

addField

clear

  • clear(): void

copyFrom

  • copyFrom(other: Store, thisOffset: number, otherOffset: number, length: number): void
  • Copy data from one store to another

    Parameters

    • other: Store

      store to copy from

    • thisOffset: number

      offset to start copying to

    • otherOffset: number

      offset to start copying from

    • length: number

      number of entries to copy

    Returns void

copyWithin

  • copyWithin(offsetTarget: number, offsetSource: number, length: number): void
  • Copy data within this store

    Parameters

    • offsetTarget: number
    • offsetSource: number
    • length: number

      number of entries to copy

    Returns void

dispose

  • dispose(): void

getChainid

  • getChainid(i: number): string

getChainname

  • getChainname(i: number): string

growIfFull

  • growIfFull(): void

resize

  • resize(size?: undefined | number): void
  • Resize the store to the new size

    Parameters

    • Optional size: undefined | number

      new size

    Returns void

setChainid

  • setChainid(i: number, str: string): void

setChainname

  • setChainname(i: number, str: string): void

sort

  • sort(compareFunction: function): void
  • Sort entries in the store given the compare function

    Parameters

    • compareFunction: function

      function to sort by

        • (a: any, b: any): number
        • Parameters

          • a: any
          • b: any

          Returns number

    Returns void

Generated using TypeDoc