RuntimeCompositeAccessor

Accessor that accepts ComponentType with it's type erased up to Object or wrapped in a Placeholder!ComponentType if it is not rooted into Object class (i.e. any value type, and extern c++ objects)

ImplSpec: The accessor will accept any object, after which it will attempt to downcast it's original type ComponentType if it is rooted in Object, otherwise the object will be downcasted to Placeholder!ComponentType. Failing to do so will result in an exception

Constructors

this
this(PropertyAccessor!(ComponentType, FieldType, KeyType) accessor)

Constructor for runtime composite accessor.

Members

Functions

access
FieldType access(Object component, KeyType path)

Get a property out of component

accessor
typeof(this) accessor(PropertyAccessor!(ComponentType, FieldType, KeyType) accessor)

Set accessor

accessor
inout(PropertyAccessor!(ComponentType, FieldType, KeyType)) accessor()

Get accessor

componentType
TypeInfo componentType(Object component)

Identify the type of supported component.

has
bool has(Object component, KeyType path)

Check if requested property is present in component.

Meta