Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IHashContainer<Key, T, SourceT, IteratorT, ReverseIteratorT, Elem>

Common interface for hash containers

author

Jeongho Nam - https://github.com/samchon

Type parameters

  • Key

  • T: Elem

  • SourceT: IHashContainer<Key, T, SourceT, IteratorT, ReverseIteratorT, Elem>

  • IteratorT: Iterator<T, SourceT, IteratorT, ReverseIteratorT, Elem>

  • ReverseIteratorT: ReverseIterator<T, SourceT, IteratorT, ReverseIteratorT, Elem>

  • Elem

Hierarchy

Index

Methods

[Symbol.iterator]

  • [Symbol.iterator](): IterableIterator<T>

assign

  • assign<InputIterator>(first: InputIterator, last: InputIterator): void

begin

  • begin(): IteratorT

bucket

  • bucket(key: Key): number

bucket_count

  • bucket_count(): number

bucket_size

  • bucket_size(index: number): number

clear

  • clear(): void

count

  • count(key: Key): number

empty

  • empty(): boolean

end

  • end(): IteratorT

erase

  • erase(key: Key): number
  • erase(pos: IteratorT): IteratorT
  • erase(first: IteratorT, last: IteratorT): IteratorT

find

  • find(key: Key): IteratorT

has

  • has(key: Key): boolean

hash_function

  • hash_function(): Hasher<Key>

key_eq

  • key_eq(): BinaryPredicator<Key>

load_factor

  • load_factor(): number

max_load_factor

  • max_load_factor(): number
  • max_load_factor(z: number): void

push

  • push(...items: Elem[]): number

rbegin

  • rbegin(): ReverseIteratorT

rehash

  • rehash(n: number): void

rend

  • rend(): ReverseIteratorT

reserve

  • reserve(n: number): void

size

  • size(): number

swap

  • swap(obj: SourceT): void

toJSON

  • toJSON(): Array<T>

Generated using TypeDoc