ObjectStorage

Implementation of Storage, Locator and AliasAware interfaces.

Stores Type elements by KeyType identity in.

Members

Functions

contents
inout(Type[const(KeyType)]) contents()

Get the contents of storage as associative array.

get
Type get(KeyType identity)

Fetch an element by identity.

has
bool has(KeyType identity)

Check if an element is present in storage.

link
ObjectStorage link(KeyType identity, KeyType alias_)

Alias an identity with alias_/

opApply
int opApply(int delegate(Type value) dg)
int opApply(int delegate(const KeyType key, Type value) dg)

Iterate over elements in storage

remove
ObjectStorage remove(KeyType identity)

Remove an element with identity from storage.

resolve
const(KeyType) resolve(KeyType alias_)

Resolve the alias to an element identity.

set
ObjectStorage set(Type element, KeyType identity)

Save an element in storage by identity.

unlink
ObjectStorage unlink(KeyType alias_)

Removes alias.

Meta