Gjsify LogoGjsify Logo

Hierarchy

  • Trie

Index

Constructors

Properties

name: string

Methods

  • destroy(): void
  • insert(key: string, value: object): void
  • Inserts value into trie located with key.

    Parameters

    • key: string

      The key to insert.

    • value: object

      The value to insert.

    Returns void

  • lookup(key: string): object
  • remove(key: string): boolean
  • Removes key from trie, possibly destroying the value associated with the key.

    Parameters

    • key: string

      The key to remove.

    Returns boolean

  • Traverses all nodes of trie according to the parameters. For each node matching the traversal parameters, func will be executed.

    Only %G_PRE_ORDER and %G_POST_ORDER are supported for order.

    If max_depth is less than zero, the entire tree will be traversed. If max_depth is 1, then only the root will be traversed.

    Parameters

    • key: string

      The key to start traversal from.

    • order: TraverseType

      The order to traverse.

    • flags: TraverseFlags

      The flags for which nodes to callback.

    • max_depth: number

      the maximum depth to process.

    • func: TrieTraverseFunc

      The func to execute for each matching node.

    Returns void

  • unref(): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • 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