RuntimeMapper

An implementation of mapper, that works solely with components that have their type erased.

An implementation of mapper, that works solely with components that have their type erased. At runtime it will attempt to match inspectors, accessor and setter for original component and destination, then use them to create a specific mapper for that configuration and use it to transfer data from origin component to destination one. If no matches are found, no transfer is performed and an exception should be thrown.

Members

Functions

map
void map(Object from, Object to, RCIAllocator allocator)

Map from component to component.

Properties

accessors
PropertyAccessor!Object[] accessors [@property setter]

Set accessors

accessors
inout(PropertyAccessor!Object[]) accessors [@property getter]

Get accessors

conversion
bool conversion [@property setter]

Set conversion

conversion
inout(bool) conversion [@property getter]

Get conversion

convertors
Convertor[] convertors [@property setter]

Set convertors

convertors
inout(Convertor[]) convertors [@property getter]

Get convertors

destructor
void delegate(Mapper!Object) destructor [@property setter]

Set destructor

destructor
inout(void delegate(Mapper!Object)) destructor [@property getter]

Get destructor

factory
Mapper!Object delegate(in PropertyAccessor!Object, in PropertySetter!Object, in Inspector!Object, in Inspector!Object) factory [@property setter]

Set factory

factory
inout(Mapper!Object delegate(in PropertyAccessor!Object, in PropertySetter!Object, in Inspector!Object, in Inspector!Object)) factory [@property getter]

Get factory

force
bool force [@property setter]

Set force

force
inout(bool) force [@property getter]

Get force

inspectors
Inspector!Object[] inspectors [@property setter]

Set inspectors

inspectors
inout(Inspector!Object[]) inspectors [@property getter]

Get inspectors

setters
PropertySetter!Object[] setters [@property setter]

Set setters

setters
inout(PropertySetter!Object[]) setters [@property getter]

Get setters

skip
bool skip [@property setter]

Set skip

skip
inout(bool) skip [@property getter]

Get skip

Meta