PropertyStore

A memory manager for properties.

Properties can be of any type.

Destructor

~this
~this()

Destructor

Members

Functions

define
size_t define(quark key, T default_)

Defines a property in the store.

defineOverlay
ptrdiff_t defineOverlay(quark key, size_t offset)

Defines an overlay for a quark at the given memory location.

get
T get(quark q)

Gets a property from its quark.

getDefault
T getDefault(quark q)

Gets the default value of a property from its quark.

getFromIndex
T getFromIndex(size_t offset)

Gets the given value from the given offset.

offsetOf
ptrdiff_t offsetOf(quark q)

Gets the offset of the given quark in the property store.

reset
void reset(quark q)

Sets a property to its default value.

resetAll
void resetAll()

Resets all of the properties of the store.

set
void set(quark q, T value)

Sets a property from its quark.

Properties

keys
quark[] keys [@property getter]

The keys the store knows about.

properties
void[] properties [@property getter]

All of the stored properties, untyped.

size
size_t size [@property getter]

Size of the store, in bytes.

Meta