HandleManager

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Functions

add
Handle!T add(T object)

Stores an element in the handle manager, returning a unique handle for that element.

clear
void clear()

Clears the handle manager, returning it to its initial state.

get
T get(Handle!T handle)

Retrieves an element from the handle manager by its handle. If no element exists at the handle, or the handle is no longer valid, null is returned. If the type of the stored element cannot store null, an exception is raised instead.

get
bool get(Handle!T handle, T object)

Retrieves an element from the handle manager by its handle, storing the result in an out parameter.

opIndex
T opIndex(Handle!T handle)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
T opIndexAssign(T object, Handle!T handle)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
bool remove(Handle!T handle)

Removes an element from the handle manager.

replace
bool replace(Handle!T handle, T object)

Replaces the element referred to by a handle in the handle manager.

Properties

length
size_t length [@property getter]

Returns the number of elements currently stored in the handle manager.

Variables

capacity
enum size_t capacity;
Undocumented in source.

Meta