Kanzi 3.9.10
kanzi::IndexedPropertyAccessRange Class Reference

Indexed property access range. More...

#include <kanzi/core.ui/binding/property_access_range.hpp>

Inheritance diagram for kanzi::IndexedPropertyAccessRange:
[legend]

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 Member Functions

PropertyObjectSharedPtr getPropertyObjectByIndexOverride (size_t index) override
 AbstractIndexedRange::getPropertyObjectByIndexOverride() implementation.
 
bool getPropertyValueByIndexOverride (size_t index, AbstractPropertyType propertyType, Variant &value) override
 AbstractIndexedRange::getPropertyValueByIndexOverride() implementation.
 
size_t getSizeOverride () override
 AbstractIndexedRange::getSizeOverride() implementation.
 
bool getValueByIndexOverride (size_t index, Variant &value) override
 AbstractIndexedRange::getValueByIndexOverride() implementation.
 
 IndexedPropertyAccessRange (AbstractIndexedRangeSharedPtr sourceRange, AbstractPropertyType propertyType)
 Constructor.
 
AbstractRangeLocationPtr locationBeginOverride () override
 AbstractRange::locationBeginOverride() implementation.
 
- Protected Member Functions inherited from kanzi::AbstractIndexedRange
bool adaptViewOverride (AbstractRange &potentialViewRange, size_t length) override
 AbstractRange::adaptViewOverride() implementation.
 
AbstractRangeSharedPtr createViewOverride (size_t length) override
 AbstractRange::createViewOverride() implementation.
 
- Protected Member Functions inherited from kanzi::AbstractRange
 AbstractRange ()=default
 Constructor.
 
virtual AbstractRangeSharedPtr evaluateOverride ()
 Implementation-dependent evaluation of the range.
 

Protected Attributes

AbstractPropertyType m_propertyType
 Property type being accessed.
 
AbstractIndexedRangeSharedPtr m_sourceRangeReference
 Reference to the source range.
 

Detailed Description

Indexed property access range.

Wraps property access from a range but includes the indexed access interface.

Since
Kanzi 3.9.0

Constructor & Destructor Documentation

◆ IndexedPropertyAccessRange()

kanzi::IndexedPropertyAccessRange::IndexedPropertyAccessRange ( AbstractIndexedRangeSharedPtr sourceRange,
AbstractPropertyType propertyType )
inlineexplicitprotected

Constructor.

Parameters
sourceRangeRange to iterate.
propertyTypeProperty type to access.

Member Function Documentation

◆ create()

static IndexedPropertyAccessRangeSharedPtr kanzi::IndexedPropertyAccessRange::create ( AbstractIndexedRangeSharedPtr sourceRange,
AbstractPropertyType propertyType )
static

Creates a new iterator range.

Parameters
sourceRangeRange to iterate.
propertyTypeProperty type to access.
Returns
Property access range shared pointer.

◆ adapt()

void kanzi::IndexedPropertyAccessRange::adapt ( AbstractIndexedRange & sourceRange,
AbstractPropertyType propertyType )

Adapts a new range and property type.

Parameters
sourceRangeRange to iterate.
propertyTypeProperty type to access.

◆ getPropertyType()

AbstractPropertyType kanzi::IndexedPropertyAccessRange::getPropertyType ( ) const
inline

Gets the property type used for access.

Returns
Property type.

◆ locationBeginOverride()

AbstractRangeLocationPtr kanzi::IndexedPropertyAccessRange::locationBeginOverride ( )
overrideprotectedvirtual

◆ getSizeOverride()

size_t kanzi::IndexedPropertyAccessRange::getSizeOverride ( )
overrideprotectedvirtual

◆ getPropertyObjectByIndexOverride()

PropertyObjectSharedPtr kanzi::IndexedPropertyAccessRange::getPropertyObjectByIndexOverride ( size_t index)
overrideprotectedvirtual

◆ getPropertyValueByIndexOverride()

bool kanzi::IndexedPropertyAccessRange::getPropertyValueByIndexOverride ( size_t index,
AbstractPropertyType propertyType,
Variant & value )
overrideprotectedvirtual

◆ getValueByIndexOverride()

bool kanzi::IndexedPropertyAccessRange::getValueByIndexOverride ( size_t index,
Variant & value )
overrideprotectedvirtual

Member Data Documentation

◆ m_sourceRangeReference

AbstractIndexedRangeSharedPtr kanzi::IndexedPropertyAccessRange::m_sourceRangeReference
protected

Reference to the source range.

◆ m_propertyType

AbstractPropertyType kanzi::IndexedPropertyAccessRange::m_propertyType
protected

Property type being accessed.


The documentation for this class was generated from the following file: