Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SetElementList<Key, Unique, Source>

Doubly Linked List storing set elements.

author

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

Type parameters

  • Key

    Key type

  • Unique: boolean

    Whether duplicated key is blocked or not

  • Source: SetContainer<Key, Unique, Source, Iterator<Key, Unique, Source>, ReverseIterator<Key, Unique, Source>>

    Source container type

Hierarchy

  • ListContainer<Key, Source, Iterator<Key, Unique, Source>, ReverseIterator<Key, Unique, Source>>
    • SetElementList

Implements

  • IContainer<Key, Source, Iterator<Key, Unique, Source>, ReverseIterator<Key, Unique, Source>, Key>
  • ILinearContainerBase<Key, Source, Iterator<Key, Unique, Source>, ReverseIterator<Key, Unique, Source>, Key>

Index

Constructors

Protected constructor

Methods

[Symbol.iterator]

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

assign

  • assign(n: number, val: Key): void
  • assign<InputIterator>(first: InputIterator, last: InputIterator): void

begin

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

clear

  • clear(): void

empty

  • empty(): boolean

end

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

erase

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

insert

  • insert(position: Iterator<Key, Unique, Source>, val: Key): Iterator<Key, Unique, Source>
  • insert(position: Iterator<Key, Unique, Source>, size: number, val: Key): Iterator<Key, Unique, Source>
  • insert<InputIterator>(position: Iterator<Key, Unique, Source>, begin: InputIterator, end: InputIterator): Iterator<Key, Unique, Source>

pop_back

  • pop_back(): void

pop_front

  • pop_front(): void

push

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

push_back

  • push_back(val: Key): void

push_front

  • push_front(val: Key): void

rbegin

  • rbegin(): ReverseIterator<Key, Unique, Source>

rend

  • rend(): ReverseIterator<Key, Unique, Source>

resize

  • resize(n: number): void

size

  • size(): number

swap

  • swap(obj: Source): void

toJSON

  • toJSON(): Array<Key>

Generated using TypeDoc