Indexed property access range. More...
#include <kanzi/core.ui/binding/property_access_range.hpp>
Classes | |
class | IndexedPropertyAccessRangeLocation |
Location implementation for indexed property access range. More... | |
Public Member Functions | |
void | adapt (AbstractIndexedRangeSharedPtr sourceRange, AbstractPropertyType propertyType) |
Adapts a new range and property type. More... | |
AbstractPropertyType | getPropertyType () const |
Gets the property type used for access. More... | |
Public Member Functions inherited from kanzi::AbstractIndexedRange | |
PropertyObjectSharedPtr | getPropertyObjectByIndex (size_t index) |
Gets a property object by index. More... | |
bool | getPropertyValueByIndex (size_t index, AbstractPropertyType propertyType, Variant &value) |
Access a property in a property object at an index. More... | |
size_t | getSize () |
Gets the size of the indexed range. More... | |
bool | getValueByIndex (size_t index, Variant &value) |
Reads a value by index and writes it to a variant. More... | |
Public Member Functions inherited from kanzi::AbstractRange | |
AbstractRangeIterator | beginIteration () |
Gets an iterator to the beginning of this range. More... | |
AbstractRangeSharedPtr | createView (size_t length) |
Creates a view over this range. More... | |
AbstractRangeSharedPtr | evaluate () |
Evaluate the abstract range. More... | |
AbstractRangeLocationPtr | locationBegin () |
Gets an iteratable location to beginning of the range. More... | |
virtual | ~AbstractRange ()=default |
Destructor. More... | |
Static Public Member Functions | |
static IndexedPropertyAccessRangeSharedPtr | create (AbstractIndexedRangeSharedPtr sourceRange, AbstractPropertyType propertyType) |
Creates a new iterator range. More... | |
Protected Attributes | |
AbstractPropertyType | m_propertyType |
Property type being accessed. More... | |
AbstractIndexedRangeSharedPtr | m_sourceRangeReference |
Reference to the source range. More... | |
Indexed property access range.
Wraps property access from a range but includes the indexed access interface.
|
inlineexplicitprotected |
Constructor.
sourceRange | Range to iterate. |
propertyType | Property type to access. |
|
static |
Creates a new iterator range.
sourceRange | Range to iterate. |
propertyType | Property type to access. |
void kanzi::IndexedPropertyAccessRange::adapt | ( | AbstractIndexedRangeSharedPtr | sourceRange, |
AbstractPropertyType | propertyType | ||
) |
Adapts a new range and property type.
sourceRange | Range to iterate. |
propertyType | Property type to access. |
|
inline |
Gets the property type used for access.
|
overrideprotectedvirtual |
AbstractRange::locationBeginOverride() implementation.
Implements kanzi::AbstractRange.
|
overrideprotectedvirtual |
AbstractIndexedRange::getSizeOverride() implementation.
Implements kanzi::AbstractIndexedRange.
|
overrideprotectedvirtual |
AbstractIndexedRange::getPropertyObjectByIndexOverride() implementation.
Implements kanzi::AbstractIndexedRange.
|
overrideprotectedvirtual |
AbstractIndexedRange::getPropertyValueByIndexOverride() implementation.
Implements kanzi::AbstractIndexedRange.
|
overrideprotectedvirtual |
AbstractIndexedRange::getValueByIndexOverride() implementation.
Implements kanzi::AbstractIndexedRange.
|
protected |
Reference to the source range.
|
protected |
Property type being accessed.