PropertyPathAccessor

An accessor that splits property into chunks using a separator, and recursively queries an accessor for next property from returned child property.

An accessor that splits property into chunks using a separator,and recursively queries an accessor for next property from returned child property. ImplSpec: Since a single accessor is used to fetch subsequent properties, a constraint on property accessors are placed, such as field of a component should be implicitly convertible to component type in order for it to be used to get next child in property chain.

Constructors

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

Constructor for property path accessor

Members

Functions

access
QualifierOfComponent!FieldType access(ComponentType component, KeyType path, RCIAllocator allocator)

Get a property out of component

componentType
TypeInfo componentType(ComponentType component)

Identify the type of supported component.

has
bool has(ComponentType component, KeyType path, RCIAllocator allocator)

Check if requested property is present in component.

Properties

accessor
PropertyAccessor!(ComponentType, FieldType, KeyType) accessor [@property setter]

Set accessor

accessor
inout(PropertyAccessor!(ComponentType, FieldType, KeyType)) accessor [@property getter]

Get accessor

separator
ElementType!KeyType separator [@property setter]

Set propertyAccessor

separator
inout(ElementType!KeyType) separator [@property getter]

Get propertyAccessor

Meta