Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PropertyDatabase

Index

Properties

Private entries

entries: IPropertyDatabaseEntry[] = []

Private id

id: number = -1

Methods

add_instance

  • add_instance(instance: any, propertyName: string): IInstance
  • Adds an IInstance to the database for the given property and instance then returns the newly created [IInstance] object. Will throw an exception if the property does not exist or if the instance already has a value associated with the given property.

    Parameters

    • instance: any
    • propertyName: string

    Returns IInstance

add_instance_subscription

  • add_instance_subscription(subscription: ISubscriptionEntry, instance: any, propertyName: string): void

add_mutator

  • add_mutator(mutator: IMutator, prototype: any, propertyName: string): void

add_property

  • add_property(prototype: any, name: string, def?: any): IProperty
  • Adds the property to the property database and returns the newly created IProperty object. Will throw an error if the property already exists.

    Parameters

    • prototype: any
    • name: string
    • Optional def: any

    Returns IProperty

add_property_subscription

  • add_property_subscription(subscription: ISubscriptionEntry, prototype: any, propertyName: string): void

get_dbinstance

  • get_dbinstance(instance: any, propertyName: string): IInstance | undefined

get_dbinstance_by_id

  • get_dbinstance_by_id(id: number): IInstance | undefined

Private get_entry

get_property

  • get_property(prototype: any, name: string): IProperty | undefined

Generated using TypeDoc