import { IIndexSetCursor } from "../core/i_index_set_cursor.js"; import { DynamicSingleIndexSetCursor } from "./dynamic_single_index_set_cursor.js"; import { SingleIndexSet } from "./single_index_set.js"; import { ILocalIDSetWithCursor } from "../core/i_local_id_set.js"; /** * As deep as the stack of nodes for this can ever be. */ export declare const MAX_NODE_STACK = 27; export declare const ELEMENT_SIZE = 2; /** * A single set of indices */ export default class DynamicSingleIndexSet implements ILocalIDSetWithCursor { private stack_; private populated_; private size_; /** * Construct this empty or with a predefined index set or cursor. * * @param from The index set or cursor to create this from if * this is defined. * @return {DynamicSingleIndexSet} An instance of DynamicSingleIndexSet */ constructor(from?: SingleIndexSet | IIndexSetCursor); /** * Insert a local ID in the set. * * @param localID The id to insert. * @return {boolean} True if the value was inserted, not a duplicate */ insert(localID: number): boolean; /** * Get the number of elements in this set * * @return {number} The size of this. */ get size(): number; /** * Delete a local ID from this. * * @param localID The local ID of the item to delete. * @return {boolean} True if the item existed to be deleted. */ delete(localID: number): boolean; /** * Does the set have a particular index for a particular type. * * @param localID The dense index in the set to check. * @return {boolean} True if it has the type. */ has(localID: number): boolean; /** * Get a cursor that lets you iterate over the current set. * * @return {IIndexSetCursor} The cursor for the items currently in the set. */ cursor(): DynamicSingleIndexSetCursor; } //# sourceMappingURL=dynamic_single_index_set.d.ts.map