A single set of indices

Implements

Constructors

Accessors

Methods

Constructors

  • Construct this empty or with a predefined index set or cursor.

    Parameters

    Returns default

    An instance of DynamicSingleIndexSet

Accessors

  • get size(): number
  • Get the number of elements in this set

    Returns number

    The size of this.

Methods

  • Delete a local ID from this.

    Parameters

    • localID: number

      The local ID of the item to delete.

    Returns boolean

    True if the item existed to be deleted.

  • 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.

  • Insert a local ID in the set.

    Parameters

    • localID: number

      The id to insert.

    Returns boolean

    True if the value was inserted, not a duplicate