Initial commit
This commit is contained in:
29
node_modules/js-sdsl/dist/cjs/container/HashContainer/Base/index.d.ts
generated
vendored
Executable file
29
node_modules/js-sdsl/dist/cjs/container/HashContainer/Base/index.d.ts
generated
vendored
Executable file
@@ -0,0 +1,29 @@
|
||||
import { Container, ContainerIterator } from "../../ContainerBase";
|
||||
export declare type HashLinkNode<K, V> = {
|
||||
_key: K;
|
||||
_value: V;
|
||||
_pre: HashLinkNode<K, V>;
|
||||
_next: HashLinkNode<K, V>;
|
||||
};
|
||||
export declare abstract class HashContainerIterator<K, V> extends ContainerIterator<K | [K, V]> {
|
||||
abstract readonly container: HashContainer<K, V>;
|
||||
pre(): this;
|
||||
next(): this;
|
||||
}
|
||||
export declare abstract class HashContainer<K, V> extends Container<K | [K, V]> {
|
||||
/**
|
||||
* @description Unique symbol used to tag object.
|
||||
*/
|
||||
readonly HASH_TAG: symbol;
|
||||
clear(): void;
|
||||
/**
|
||||
* @description Remove the element of the specified key.
|
||||
* @param key - The key you want to remove.
|
||||
* @param isObject - Tell us if the type of inserted key is `object` to improve efficiency.<br/>
|
||||
* If a `undefined` value is passed in, the type will be automatically judged.
|
||||
* @returns Whether erase successfully.
|
||||
*/
|
||||
eraseElementByKey(key: K, isObject?: boolean): boolean;
|
||||
eraseElementByIterator(iter: HashContainerIterator<K, V>): HashContainerIterator<K, V>;
|
||||
eraseElementByPos(pos: number): number;
|
||||
}
|
||||
Reference in New Issue
Block a user