Options
All
  • Public
  • Public/Protected
  • All
Menu

Vector class is like a Set except it keeps track of a max id

Hierarchy

Implements

Index

Properties

bitLength

bitLength: number = 0

if this originatd from an encoded string we'll need a place to store the bit length; it can be set and got from here

Accessors

maxId

maxId:

maxId

size

size:

Methods

__@iterator

clone

empty

  • empty(): void

forEach

  • forEach(callback: function): void
  • forEach - to traverse from id=1 to id=maxId in a sequential non-sparse manner

    callback

    forEachCallback

    Parameters

    • callback: function

      callback to execute

        • (value: boolean, id: number): void
        • Parameters

          • value: boolean
          • id: number

          Returns void

    Returns void

has

  • has(id: number): boolean
  • get

    Parameters

    • id: number

      key for value to check

    Returns boolean

    • value of that key, if never set it will be false

set

  • set - sets an id assumed to be a truthy value by its presence

    Parameters

    • id: IdOrIds

      id to set a value for or array of ids to include

    Returns void

setAll

  • setAll<T>(intMap: IntMap<T>): void

unset

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc