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 (AbstractIndexedRange &sourceRange, AbstractPropertyType propertyType) |
Adapts a new range and property type. | |
AbstractPropertyType | getPropertyType () const |
Gets the property type used for access. | |
Public Member Functions inherited from kanzi::AbstractIndexedRange | |
PropertyObjectSharedPtr | getPropertyObjectByIndex (size_t index) |
Gets a property object by index. | |
bool | getPropertyValueByIndex (size_t index, AbstractPropertyType propertyType, Variant &value) |
Access a property in a property object at an index. | |
size_t | getSize () |
Gets the size of the indexed range. | |
bool | getValueByIndex (size_t index, Variant &value) |
Reads a value by index and writes it to a variant. | |
Public Member Functions inherited from kanzi::AbstractRange | |
bool | adaptView (AbstractRange &potentialViewRange, size_t length) |
Attempts to reuse a view over this range. | |
AbstractRangeIterator | beginIteration () |
Gets an iterator to the beginning of this range. | |
AbstractRangeSharedPtr | createView (size_t length) |
Creates a view over this range. | |
AbstractRangeSharedPtr | evaluate () |
Evaluate the abstract range. | |
AbstractRangeLocationPtr | locationBegin () |
Gets an iteratable location to beginning of the range. | |
virtual | ~AbstractRange ()=default |
Destructor. | |
Static Public Member Functions | |
static IndexedPropertyAccessRangeSharedPtr | create (AbstractIndexedRangeSharedPtr sourceRange, AbstractPropertyType propertyType) |
Creates a new iterator range. | |
Protected Attributes | |
AbstractPropertyType | m_propertyType |
Property type being accessed. | |
AbstractIndexedRangeSharedPtr | m_sourceRangeReference |
Reference to the source range. | |
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 | ( | AbstractIndexedRange & | 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.