Template SwitchableContainer

Templated switchable decorated.

template SwitchableContainer(T) ;

Templated switchable decorated. This decorated will decorate another decorated, and add switching logic to it. Depending in which state (on/off) the switching decorated is. It will instantiate if the decorated is on, and not if decorated is in off mode. This decorated will inherit following interfaces only and only if the T also implements them:

  1. Storage!(ObjectFactory, string)
  2. Container
  3. AliasAware!string
Decorated container must implement following interfaces:
  1. Locator!()
  2. MutableDecorator!T
  3. Switchable

Contained Classes

NameDescription
SwitchableContainer Templated switchable decorated.

Contained Aliases

NameDescription
InheritanceSet Set which the switchable decorated will decorate for T. By default Locator!() and Switchable is included.

Parameters

NameDescription
T The decorated that switchable decorated will decorate.