aermicioi.aedi_property_reader.convertor.accessor

Members

Classes

AggregatePropertyAccessor
class AggregatePropertyAccessor(ComponentType, FieldType = ComponentType, KeyType = string)

An accessor that queries stored accessors for component.

ArrayAccessor
class ArrayAccessor(ComponentType : Type[], Type)

Accessor implementing array access.

ArrayIndexedPropertyAccessor
class ArrayIndexedPropertyAccessor(ComponentType, FieldType = ComponentType, KeyType = string)

An accessor that allows accessing of a property and it's childs with array syntax.

AssociativeArrayAccessor
class AssociativeArrayAccessor(ComponentType : Type[Key], Type, Key)

Implements logic for accessing associative arrays.

KeyConvertingAccessor
class KeyConvertingAccessor(ComponentType, FieldType = ComponentType, InputKeyType = string, ConvertedKeyType = InputKeyType)

Accessor that converts input property identity of InputKeyType converts to ConvertedKeyType, and then uses it to access the ComponentType using decorated convertor.

PropertyPathAccessor
class PropertyPathAccessor(ComponentType, FieldType = ComponentType, KeyType = string)

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

TaggedElementPropertyAccessorWrapper
class TaggedElementPropertyAccessorWrapper(Tagged : TaggedAlgebraic!Y, PropertyAccessorType : PropertyAccessor!(X, Z, KeyType), X, Z, KeyType = string, Y)

Property accessor that is decaying tagged algebraic to a type accepted by decorated accessor.

TickedPropertyAccessor
class TickedPropertyAccessor(ComponentType, FieldType = ComponentType, KeyType = string)

Class that allows accessing properties that are wrapped in ticks.

VariantAccessor
class VariantAccessor(ComponentType, FieldType = ComponentType, KeyType = ComponentType)

Accessor implementing logic for accessingstd.variant.

Functions

arrayIndexedPropertyAccessor
auto arrayIndexedPropertyAccessor(ElementType!KeyType beggining, ElementType!KeyType ending, T accessor, T indexer)

An accessor that allows accessing of a property and it's childs with array syntax.

dsl
auto dsl(PropertyAccessor!(ComponentType, FieldType, KeyType) accessor, PropertyAccessor!(ComponentType, FieldType, KeyType) indexer)

Creates a dlang dsl language for accessing properties out of a ComponentType.

propertyPathAccessor
auto propertyPathAccessor(ElementType!KeyType separator, T accessor)

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

runtimeDsl
auto runtimeDsl(PropertyAccessor!(ComponentType, FieldType, KeyType) accessor, PropertyAccessor!(ComponentType, FieldType, KeyType) indexer)

Creates a dlang dsl language for accessing properties out of a ComponentType.

taggedAccessor
auto taggedAccessor(T accessor)

Property accessor that is decaying tagged algebraic to a type accepted by decorated accessor.

tickedAccessor
auto tickedAccessor(ElementType!KeyType tick, T accessor)

Class that allows accessing properties that are wrapped in ticks.

Interfaces

PropertyAccessor
interface PropertyAccessor(ComponentType, FieldType = ComponentType, KeyType = string)

Interface for objects that are able to get child component out of parent one.

Templates

CompositeAccessor
template CompositeAccessor(Type)

Accessor that allows access to fields and properties of a component of Type.

RuntimeCompositeAccessor
template RuntimeCompositeAccessor(ComponentType, FieldType = ComponentType, KeyType = string)

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)

UnwrappingComponentAccessor
template UnwrappingComponentAccessor(ComponentType, FieldType = ComponentType, KeyType = string)

An accessor that downcasts or unwraps passed component.

UnwrappingFieldAccessor
template UnwrappingFieldAccessor(ComponentType, FieldType = ComponentType, KeyType = string)

An accessor that downcasts or unwraps resulting field.

WrappingComponentAccessor
template WrappingComponentAccessor(ComponentType, FieldType = ComponentType, KeyType = string)

An accessor that erases component type's.

WrappingFieldAccessor
template WrappingFieldAccessor(ComponentType, FieldType = ComponentType, KeyType = string)

An accessor that erases returned property's type.

Meta

License

Boost Software License - Version 1.0 - August 17th, 2003

Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:

The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Authors

Alexandru Ermicioi