A single set of indices

Implements

Constructors

  • Construct this with a matching elements table.

    Parameters

    • start_: number
    • end_: number
    • elements_: Uint32Array<ArrayBufferLike>

      The elements in the index, matching the start->end indices * 2, where there's 2 elements in the array for each item, packed (first has the bottom 5 bits masked out, and is the top bits, the second is a bit field representing the elements for the top bit range, in a unioned-one-hot representation).

    Returns SingleIndexSet

Accessors

  • get size(): number
  • The size of the set.

    Returns number

    The size of the set.

Methods

  • Does the set have a particular index for a particular type.

    Parameters

    • localID: number

      The dense index in the set to check.

    Returns boolean

    True if it has the type.

  • Create an index from an ascended sorting set of local IDs.

    Parameters

    Returns SingleIndexSet

    The created index sex.

  • Create an index from a single local id.

    Parameters

    • localId: number

      The local id.

    Returns SingleIndexSet

    The created multi-set index.