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. More... | |
const AbstractIndexedRange & | getSourceRange () const |
Accesses the range with correct type. More... | |
Public Member Functions inherited from kanzi::AbstractIndexedRange | |
PropertyObjectSharedPtr | getPropertyObjectByIndex (size_t index) |
Gets a property object by index. More... | |
bool | getPropertyValueByIndex (size_t index, AbstractPropertyType propertyType, Variant &value) |
Access a property in a property object at an index. More... | |
size_t | getSize () |
Gets the size of the indexed range. More... | |
bool | getValueByIndex (size_t index, Variant &value) |
Reads a value by index and writes it to a variant. More... | |
Public Member Functions inherited from kanzi::AbstractRange | |
bool | adaptView (AbstractRange &potentialViewRange, size_t length) |
Attempts to reuse a view over this range. More... | |
AbstractRangeIterator | beginIteration () |
Gets an iterator to the beginning of this range. More... | |
AbstractRangeSharedPtr | createView (size_t length) |
Creates a view over this range. More... | |
AbstractRangeSharedPtr | evaluate () |
Evaluate the abstract range. More... | |
AbstractRangeLocationPtr | locationBegin () |
Gets an iteratable location to beginning of the range. More... | |
virtual | ~AbstractRange ()=default |
Destructor. More... | |
Public Member Functions inherited from kanzi::ViewRangeImpl | |
AbstractRange * | getSourceRange () const |
Gets the source range. More... | |
size_t | getViewLength () const |
Gets the length of the view. More... | |
void | setSourceRange (AbstractRangeSharedPtr sourceRange) |
Sets the source range. More... | |
void | setViewLength (size_t viewLength) |
Sets the length of the view. More... | |
Static Public Member Functions | |
static bool | adapt (AbstractRange &potentialViewRange, AbstractIndexedRange *sourceRange, size_t length) |
Reuse a view range. More... | |
static IndexedViewRangeSharedPtr | create (AbstractIndexedRangeSharedPtr sourceRange, size_t length) |
Creates a new view range over a range. More... | |
Additional Inherited Members | |
Protected Attributes inherited from kanzi::ViewRangeImpl | |
size_t | m_length |
Limiting length. More... | |
AbstractRangeSharedPtr | m_sourceRange |
Source range. More... | |
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.