View over another indexed range. More...
#include <kanzi/core/property/view_range.hpp>
Classes | |
class | IndexedViewRangeLocation |
Location class for indexed view range. More... | |
Public Member Functions | |
AbstractIndexedRange & | getSourceRange () |
Accesses the range with correct type. | |
const AbstractIndexedRange & | getSourceRange () const |
Accesses the range with correct type. | |
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. | |
Public Member Functions inherited from kanzi::ViewRangeImpl | |
AbstractRange * | getSourceRange () const |
Gets the source range. | |
size_t | getViewLength () const |
Gets the length of the view. | |
void | setSourceRange (AbstractRangeSharedPtr sourceRange) |
Sets the source range. | |
void | setViewLength (size_t viewLength) |
Sets the length of the view. | |
Static Public Member Functions | |
static bool | adapt (AbstractRange &potentialViewRange, AbstractIndexedRange *sourceRange, size_t length) |
Reuse a view range. | |
static IndexedViewRangeSharedPtr | create (AbstractIndexedRangeSharedPtr sourceRange, size_t length) |
Creates a new view range over a range. | |
Additional Inherited Members | |
Protected Attributes inherited from kanzi::ViewRangeImpl | |
size_t | m_length |
Limiting length. | |
AbstractRangeSharedPtr | m_sourceRange |
Source range. | |
View over another indexed range.
View range abstracts a view over another range, but with limited size. This version of the view range provides an indexed access interface.
|
inlineexplicitprotected |
Creates a new view range over a range.
sourceRange | Range as input to the view range. |
length | View range length. |
|
inlinestatic |
Creates a new view range over a range.
sourceRange | Range as input to the view range. |
length | View range length. |
|
inline |
Accesses the range with correct type.
|
inline |
Accesses the range with correct type.
|
static |
Reuse a view range.
potentialViewRange | Potential view range. |
sourceRange | Source range. |
length | View length. |
|
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.