locate

Given a locator, locates an object and attempts to downcast to T type.

See: aermicioi.aedi.storage.wrapper : unwrap for downcasting semantics.

  1. auto ref locate(Locator!(Object, string) locator, string id)
    @trusted ref
    locate
    (
    T
    )
    (
    Locator!(Object, string) locator
    ,
    string id
    )
  2. auto ref locate(Locator!(Object, string) locator)

Parameters

locator Locator!(Object, string)

the locator that contains the component with id as identity

id string

identity of object contained in locator

Return Value

Type: auto ref

Object casted to desired type.

Throws

InvalidCastException when actual type of object is not of type that is requested.

Meta