resolve

Resolve a reference, and attempt to convert to component of type T.

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

  1. auto resolve(RuntimeReference reference, Locator!() locator)
    @trusted
    resolve
    (
    T
    )
  2. Z resolve(Z reference, Locator!() locator)

Parameters

T

the expected type of resolved component.

locator Locator!()

optional source of components for resolving reference

Return Value

Type: auto

T referenced object Wrapper!T referenced component that is not of Object subclass.

Throws

InvalidCastException when resolved component is not of expected type.

Meta