Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ITreeSet<Key, Unique, Source, IteratorT, ReverseT>

Common interface for tree sets.

author

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

Type parameters

  • Key

    Key type

  • Unique: boolean

    Whether duplicated key is blocked or not

  • Source: ITreeSet<Key, Unique, Source, IteratorT, ReverseT>

    Derived type extending this ITreeSet

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

    Iterator type

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

    Reverse iterator type

Hierarchy

Implements

Index

Type aliases

InsertRet

InsertRet<Key, Unique, Source, IteratorT, ReverseT>: Unique extends true ? Pair<IteratorT, boolean> : IteratorT

Return type of {@link SetContainer.insert}

Type parameters

  • Key

  • Unique: boolean

  • Source: SetContainer<Key, Unique, Source, IteratorT, ReverseT>

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

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

Iterator

Iterator<Key, Unique, SourceT, IteratorT, ReverseT>: Readonly<Iterator<Key, SourceT, IteratorT, ReverseT, Key>>

Iterator of SetContainer

author

Jenogho Nam http://samchon.org

Type parameters

  • Key

  • Unique: boolean

  • SourceT: SetContainer<Key, Unique, SourceT, IteratorT, ReverseT>

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

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

ReverseIterator

ReverseIterator<Key, Unique, SourceT, IteratorT, ReverseT>: Readonly<ReverseIterator<Key, SourceT, IteratorT, ReverseT, Key>>

Reverse iterator of SetContainer

author

Jenogho Nam http://samchon.org

Type parameters

  • Key

  • Unique: boolean

  • SourceT: SetContainer<Key, Unique, SourceT, IteratorT, ReverseT>

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

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

Constructors

Protected constructor

  • new ITreeSet(factory: (thisArg: Source) => ILinearContainerBase<Key, Source, IteratorT, ReverseT>): ITreeSet
  • Default Constructor.

    Parameters

    • factory: (thisArg: Source) => ILinearContainerBase<Key, Source, IteratorT, ReverseT>
        • (thisArg: Source): ILinearContainerBase<Key, Source, IteratorT, ReverseT>
        • Parameters

          • thisArg: Source

          Returns ILinearContainerBase<Key, Source, IteratorT, ReverseT>

    Returns ITreeSet

Methods

[Symbol.iterator]

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

assign

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

begin

  • begin(): IteratorT

clear

  • clear(): void

Abstract count

  • count(key: Key): number

empty

  • empty(): boolean

end

  • end(): IteratorT

equal_range

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

erase

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

Abstract find

  • find(key: Key): IteratorT

has

  • has(key: Key): boolean

key_comp

  • key_comp(): Comparator<Key>

lower_bound

  • lower_bound(key: Key): IteratorT

Abstract merge

  • merge(source: Source): void

push

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

rbegin

  • rbegin(): ReverseT

rend

  • rend(): ReverseT

size

  • size(): number

Abstract swap

  • swap(obj: Source): void

toJSON

  • toJSON(): Array<Key>

upper_bound

  • upper_bound(key: Key): IteratorT

value_comp

  • value_comp(): Comparator<Key>

Generated using TypeDoc