Abstract indexed range interface. More...
#include <kanzi/core/property/abstract_range.hpp>
Public Member Functions | |
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. | |
Protected Member Functions | |
bool | adaptViewOverride (AbstractRange &potentialViewRange, size_t length) override |
AbstractRange::adaptViewOverride() implementation. | |
AbstractRangeSharedPtr | createViewOverride (size_t length) override |
AbstractRange::createViewOverride() implementation. | |
virtual PropertyObjectSharedPtr | getPropertyObjectByIndexOverride (size_t index)=0 |
Implementation-dependent access to property object. | |
virtual bool | getPropertyValueByIndexOverride (size_t index, AbstractPropertyType propertyType, Variant &value)=0 |
Access a property from an index. | |
virtual size_t | getSizeOverride ()=0 |
Implementation-dependent size query. | |
virtual bool | getValueByIndexOverride (size_t index, Variant &value)=0 |
Implementation-dependent access of value by index. | |
Protected Member Functions inherited from kanzi::AbstractRange | |
AbstractRange ()=default | |
Constructor. | |
virtual AbstractRangeSharedPtr | evaluateOverride () |
Implementation-dependent evaluation of the range. | |
virtual AbstractRangeLocationPtr | locationBeginOverride ()=0 |
Implementation of iterator to beginning. | |
Abstract indexed range interface.
AbstractIndexedRange is intended as use for potential optimization to avoid creating iterators when accessing ranges that can be accessed by index. Its use is intended for internal Kanzi use to avoid casting to several range types offering access without range iterator interface.
|
inline |
Gets the size of the indexed range.
|
inline |
Gets a property object by index.
index | Index of value to access. |
|
inline |
Access a property in a property object at an index.
index | Index of value to access. |
propertyType | property type to access. |
value | Variant to store the value to. |
Reads a value by index and writes it to a variant.
index | Index of value to access. |
value | Variant to store the value to. |
|
overrideprotectedvirtual |
AbstractRange::adaptViewOverride() implementation.
Reimplemented from kanzi::AbstractRange.
|
overrideprotectedvirtual |
AbstractRange::createViewOverride() implementation.
Reimplemented from kanzi::AbstractRange.
|
protectedpure virtual |
Implementation-dependent size query.
Implemented in kanzi::IteratorRange, kanzi::IndexedPropertyAccessRange, kanzi::ImmutableSplitStringRange, kanzi::TypedValueRange< T >, kanzi::TypedValueRange< LightDistanceInfo >, kanzi::TypedValueRange< LightInfo >, kanzi::TypedValueRange< NodeWeakPtr >, kanzi::ValueRange, and kanzi::IndexedViewRange.
|
protectedpure virtual |
Implementation-dependent access to property object.
index | Index of value to access. |
Implemented in kanzi::IteratorRange, kanzi::IndexedPropertyAccessRange, kanzi::ImmutableSplitStringRange, kanzi::TypedValueRange< T >, kanzi::TypedValueRange< LightDistanceInfo >, kanzi::TypedValueRange< LightInfo >, kanzi::TypedValueRange< NodeWeakPtr >, kanzi::ValueRange, kanzi::GatherLightsRenderPass::LightRange, and kanzi::IndexedViewRange.
|
protectedpure virtual |
Access a property from an index.
index | Index of value to access. |
propertyType | property type to access. |
value | Variant to store the value to. |
Implemented in kanzi::IteratorRange, kanzi::IndexedPropertyAccessRange, kanzi::ImmutableSplitStringRange, kanzi::TypedValueRange< T >, kanzi::TypedValueRange< LightDistanceInfo >, kanzi::TypedValueRange< LightInfo >, kanzi::TypedValueRange< NodeWeakPtr >, kanzi::ValueRange, kanzi::GatherLightsRenderPass::LightRange, and kanzi::IndexedViewRange.
|
protectedpure virtual |
Implementation-dependent access of value by index.
index | Index of value to access. |
value | Variant to store the value to. |
Implemented in kanzi::IteratorRange, kanzi::IndexedPropertyAccessRange, kanzi::ImmutableSplitStringRange, kanzi::TypedValueRange< T >, kanzi::TypedValueRange< LightDistanceInfo >, kanzi::TypedValueRange< LightInfo >, kanzi::TypedValueRange< NodeWeakPtr >, kanzi::ValueRange, and kanzi::IndexedViewRange.