Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IFunctionCollection

Defines a functions list.

Hierarchy

  • IFunctionCollection

Implemented by

Index

Properties

length

length: number

Gets a number of functions stored in the collection.

returns

a number of stored functions.

Methods

add

  • Adds a new function to the collection.

    Parameters

    Returns void

clear

  • clear(): void
  • Clears the collection.

    Returns void

findByName

  • Finds function in the list by it's name.

    Parameters

    • name: string

      The function name to be found.

    Returns IFunction

    A function or null if function was not found.

findIndexByName

  • findIndexByName(name: string): number
  • Finds function index in the list by it's name.

    Parameters

    • name: string

      The function name to be found.

    Returns number

    Function index in the list or -1 if function was not found.

get

  • Get a function by its index.

    Parameters

    • index: number

      a function index.

    Returns IFunction

    a retrieved function.

getAll

  • Get all functions stores in the collection

    Returns IFunction[]

    a list with functions.

remove

  • remove(index: number): void
  • Removes a function by its index.

    Parameters

    • index: number

      a index of the function to be removed.

    Returns void

removeByName

  • removeByName(name: string): void
  • Removes function by it's name.

    Parameters

    • name: string

      The function name to be removed.

    Returns void

Generated using TypeDoc