Iterator location range pointing to a particular location of an iterator range. More...
#include <kanzi/core.ui/binding/iterator_range.hpp>
Public Member Functions | |
void | advance () |
Advance the iterator location. | |
Public Member Functions inherited from kanzi::IteratorRange | |
void | adapt (AbstractRange &range) |
Adapt another range. | |
PropertyObjectSharedPtr | getPropertyObject () |
Gets a property object from the current iterator location. | |
bool | getPropertyValue (AbstractPropertyType propertyType, Variant &value) |
Gets a property value from the property object at current location. | |
bool | getValue (Variant &value) |
Gets the value at current location. | |
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 ImmutableIteratorRangeSharedPtr | create (const AbstractRangeIterator &sourceIterator) |
Creates a new iterator range. | |
Static Public Member Functions inherited from kanzi::IteratorRange | |
static IteratorRangeSharedPtr | create (AbstractRangeIterator &&sourceIterator) |
Creates a new iterator range. | |
static IteratorRangeSharedPtr | create (AbstractRangeSharedPtr sourceRange) |
Creates a new iterator range. | |
static IteratorRangeSharedPtr | create (const AbstractRangeIterator &sourceIterator) |
Creates a new iterator range. | |
Additional Inherited Members | |
Public Types inherited from kanzi::IteratorRange | |
using | const_iterator |
Const iterator type for values. | |
using | iterator |
Iterator type for values. | |
Protected Attributes inherited from kanzi::IteratorRange | |
AbstractRangeIterator | m_iter |
Iterator into a source range. | |
AbstractRangeSharedPtr | m_sourceRangeReference |
Reference to the source range. | |
Iterator location range pointing to a particular location of an iterator range.
As opposed to the iterator range that advances when evaluated, and the first evaluation returns the initial location, evaluating IteratorLocationRange will not modify its own iterator and returns the next element in sequence.
|
explicitprotected |
Constructor.
sourceIterator | Iterator to another range. |
|
static |
Creates a new iterator range.
sourceIterator | Iterator to another range. |
void kanzi::ImmutableIteratorRange::advance | ( | ) |
Advance the iterator location.
Called internally by Kanzi after the creation of ImmutableIterationRange as needed.
|
overrideprotectedvirtual |
AbstractRange::evaluateOverride() implementation.
Reimplemented from kanzi::AbstractRange.