Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapElementVector<Key, T, Unique, Source>

Vector storing map elements.

author

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

Type parameters

  • Key

    Key type

  • T

    Mapped type

  • Unique: boolean

    Whether duplicated key is blocked or not

  • Source: ITreeMap<Key, T, Unique, Source, Iterator<Key, T, Unique, Source>, ReverseIterator<Key, T, Unique, Source>>

    Source type

Hierarchy

Implements

Index

Constructors

Protected constructor

Methods

[Symbol.iterator]

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

assign

  • assign(n: number, val: Entry<Key, T>): void
  • assign<InputIterator>(begin: InputIterator, end: InputIterator): void

at

  • at(index: number): Entry<Key, T>

back

  • back(): Entry<Key, T>
  • back(val: Entry<Key, T>): void

begin

  • begin(): Iterator<Key, T, Unique, Source>

clear

  • clear(): void

data

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

empty

  • empty(): boolean

end

  • end(): Iterator<Key, T, Unique, Source>

equals

  • equals(obj: Source): boolean

erase

  • erase(it: Iterator<Key, T, Unique, Source>): Iterator<Key, T, Unique, Source>
  • erase(first: Iterator<Key, T, Unique, Source>, last: Iterator<Key, T, Unique, Source>): Iterator<Key, T, Unique, Source>

front

  • front(): Entry<Key, T>
  • front(val: Entry<Key, T>): void

insert

  • insert(pos: Iterator<Key, T, Unique, Source>, val: Entry<Key, T>): Iterator<Key, T, Unique, Source>
  • insert(pos: Iterator<Key, T, Unique, Source>, n: number, val: Entry<Key, T>): Iterator<Key, T, Unique, Source>
  • insert<InputIterator>(pos: Iterator<Key, T, Unique, Source>, first: InputIterator, last: InputIterator): Iterator<Key, T, Unique, Source>

pop_back

  • pop_back(): void

push

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

push_back

  • push_back(val: Entry<Key, T>): void

rbegin

rend

resize

  • resize(n: number): void

set

  • set(index: number, val: Entry<Key, T>): void

size

  • size(): number

swap

  • swap(obj: Source): void

toJSON

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

Generated using TypeDoc