Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HashMultiMap<Key, T>

Multiple-key Map based on Hash buckets.

author

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

Type parameters

  • Key

  • T

Hierarchy

Implements

Index

Type aliases

Static Iterator

Iterator<Key, T, SourceT, IteratorT, ReverseT>: MapContainer.Iterator<Key, T, false, SourceT, IteratorT, ReverseT>

Iterator of MultiMap

author

Jenogho Nam http://samchon.org

Type parameters

  • Key

  • T

  • SourceT: MultiMap<Key, T, SourceT, IteratorT, ReverseT>

  • IteratorT: Iterator<Key, T, SourceT, IteratorT, ReverseT>

  • ReverseT: ReverseIterator<Key, T, SourceT, IteratorT, ReverseT>

Static ReverseIterator

ReverseIterator<Key, T, SourceT, IteratorT, ReverseT>: MapContainer.ReverseIterator<Key, T, false, SourceT, IteratorT, ReverseT>

Reverse iterator of MultiMap

author

Jenogho Nam http://samchon.org

Type parameters

  • Key

  • T

  • SourceT: MultiMap<Key, T, SourceT, IteratorT, ReverseT>

  • IteratorT: Iterator<Key, T, SourceT, IteratorT, ReverseT>

  • ReverseT: ReverseIterator<Key, T, SourceT, IteratorT, ReverseT>

Constructors

constructor

Methods

[Symbol.iterator]

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

assign

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

begin

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

emplace

  • emplace(key: Key, val: T): Iterator<Key, T>

emplace_hint

empty

  • empty(): boolean

end

erase

find

has

  • has(key: Key): boolean

hash_function

  • hash_function(): Hasher<Key>

insert

  • insert(pair: IPair<Key, T>): Iterator<Key, T>
  • insert(hint: Iterator<Key, T>, pair: IPair<Key, T>): Iterator<Key, T>
  • insert<InputIterator>(first: InputIterator, last: InputIterator): void

key_eq

  • key_eq(): BinaryPredicator<Key>

load_factor

  • load_factor(): number

max_load_factor

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

merge

push

  • push(...items: IPair<Key, T>[]): number

rbegin

rehash

  • rehash(n: number): void

rend

reserve

  • reserve(n: number): void

size

  • size(): number

swap

toJSON

  • toJSON(): Array<Entry<Key, T>>

Generated using TypeDoc