Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MultiTreeMap<Key, T, Source, IteratorT, ReverseT>

Basic tree map allowing duplicated keys.

author

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

Type parameters

  • Key

    Key type

  • T

    Mapped type

  • Source: MultiTreeMap<Key, T, Source, IteratorT, ReverseT>

    Derived type extending this MultiTreeMap

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

    Iterator type

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

    Reverse iterator type

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

Protected constructor

  • new MultiTreeMap(factory: (thisArg: Source) => ILinearContainerBase<Entry<Key, T>, Source, IteratorT, ReverseT>): MultiTreeMap

Methods

[Symbol.iterator]

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

assign

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

begin

  • begin(): IteratorT

clear

  • clear(): void

count

  • count(key: Key): number

emplace

  • emplace(key: Key, val: T): IteratorT

emplace_hint

  • emplace_hint(hint: IteratorT, key: Key, val: T): IteratorT

empty

  • empty(): boolean

end

  • end(): IteratorT

equal_range

  • equal_range(key: Key): Pair<IteratorT, IteratorT>

erase

  • erase(key: Key): number
  • erase(it: IteratorT): IteratorT
  • erase(begin: IteratorT, end: IteratorT): IteratorT

find

  • find(key: Key): IteratorT

has

  • has(key: Key): boolean

insert

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

Abstract key_comp

  • key_comp(): Comparator<Key>

Abstract lower_bound

  • lower_bound(key: Key): IteratorT

merge

  • merge(source: Source): void

push

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

rbegin

  • rbegin(): ReverseT

rend

  • rend(): ReverseT

size

  • size(): number

Abstract swap

  • swap(obj: Source): void

toJSON

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

Abstract upper_bound

  • upper_bound(key: Key): IteratorT

value_comp

  • value_comp(): Comparator<IPair<Key, T>>

Generated using TypeDoc