Options
All
  • Public
  • Public/Protected
  • All
Menu

Contains factory functions that create instances of containers' ADTs.

Index

Functions

newMaxPQ

  • Creates new instance of MaxPriorityQueue based on binary heap (see Priority Queues for details).

    Type parameters

    • E

    Parameters

    • comparator: Comparator<E>

      comparator for the queue elements.

    • Default value elements: E[] = []

      elements to put in this queue. Default value is empty array.

    Returns Queue<E>

    MaxPriorityQueue.

newMinPQ

  • Creates new instance of MinPriorityQueue based on binary heap (see Priority Queues for details).

    Type parameters

    • E

    Parameters

    • comparator: Comparator<E>

      comparator for the queue elements.

    • Default value elements: E[] = []

      elements to put in this queue. Default value is empty array.

    Returns Queue<E>

    MinPriorityQueue.

newQueue

  • newQueue<E>(): Queue<E>

newStack

  • newStack<E>(): Stack<E>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc