SerializableReference

Makes a reference serializable.

The reference must be stored in the ReferenceMan.

A "referenced variable" is typically something that is assigned at the run-time but not owned by the entity that wants to keep track of it, or that is serialized by another entity.

Note that this class is not needed to serialize a reference to an object or to a delegate, since those reference types are automatically handled by the serializer.

Constructors

this
this()

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

onRestored
void onRestored(void delegate(Object) value)
void delegate(Object) onRestored()

Defines the event called when the the identifier string and the type string are restored, so that the reference owner can retrieve the matching reference in the ReferenceMan.

restoreReference
auto restoreReference()

Returns the reference according to the internal fields.

storeReference
void storeReference(ref RT reference)

Sets the internal fields according to a referenced.

Inherited Members

From PropertyPublisher

publicationCount
size_t publicationCount()

Returns the count of descriptor this class publishes.

publicationFromName
GenericDescriptor* publicationFromName(const(char)[] name)

Returns a pointer to a descriptor according to its name. Similar to the publication() function template excepted that the result type has not to be specified.

publicationFromIndex
GenericDescriptor* publicationFromIndex(size_t index)

Returns a pointer the index-th descriptor. Index must be within the [0 .. publicationCount] range.

declarator
Object declarator()
void declarator(Object value)

Pointer to the object that has created the descriptor leading to this PropertyPublisher instance.

Meta