Options
All
  • Public
  • Public/Protected
  • All
Menu

Descent respects a collection of locks over nodes that should not move

class

Locks

Hierarchy

  • Locks

Index

Properties

Methods

Properties

locks

locks: object

Type declaration

  • [key: number]: number[]

Methods

add

  • add(id: number, x: number[]): void
  • add a lock on the node at index id

    method

    add

    Parameters

    • id: number

      index of node to be locked

    • x: number[]

      required position for node

    Returns void

apply

  • apply(f: function): void
  • perform an operation on each lock

    apply

    Parameters

    • f: function
        • (id: number, x: number[]): void
        • Parameters

          • id: number
          • x: number[]

          Returns void

    Returns void

clear

  • clear(): void
  • method

    clear clear all locks

    Returns void

isEmpty

  • isEmpty(): boolean
  • isempty

    Returns boolean

    false if no locks exist

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