Kanzi  3.9.9
Kanzi Engine C++ API
kanzi::IndexedViewRange Class Reference

View over another indexed range. More...

#include <kanzi/core/property/view_range.hpp>

Inheritance diagram for kanzi::IndexedViewRange:
[legend]

Classes

class  IndexedViewRangeLocation
 Location class for indexed view range. More...
 

Public Member Functions

AbstractIndexedRangegetSourceRange ()
 Accesses the range with correct type. More...
 
const AbstractIndexedRangegetSourceRange () 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
AbstractRangegetSourceRange () 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...
 

Protected Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from kanzi::ViewRangeImpl
size_t m_length
 Limiting length. More...
 
AbstractRangeSharedPtr m_sourceRange
 Source range. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

kanzi::IndexedViewRange::IndexedViewRange ( AbstractRangeSharedPtr  sourceRange,
size_t  length 
)
inlineexplicitprotected

Creates a new view range over a range.

Parameters
sourceRangeRange as input to the view range.
lengthView range length.

Member Function Documentation

static IndexedViewRangeSharedPtr kanzi::IndexedViewRange::create ( AbstractIndexedRangeSharedPtr  sourceRange,
size_t  length 
)
inlinestatic

Creates a new view range over a range.

Parameters
sourceRangeRange as input to the view range.
lengthView range length.
AbstractIndexedRange& kanzi::IndexedViewRange::getSourceRange ( )
inline

Accesses the range with correct type.

Returns
Casted range.
const AbstractIndexedRange& kanzi::IndexedViewRange::getSourceRange ( ) const
inline

Accesses the range with correct type.

Returns
Casted range.
static bool kanzi::IndexedViewRange::adapt ( AbstractRange potentialViewRange,
AbstractIndexedRange sourceRange,
size_t  length 
)
static

Reuse a view range.

Parameters
potentialViewRangePotential view range.
sourceRangeSource range.
lengthView length.
Returns
If it is possible to use the existing range, true, otherwise false.
Since
Kanzi 3.9.6
AbstractRangeLocationPtr kanzi::IndexedViewRange::locationBeginOverride ( )
overrideprotectedvirtual
size_t kanzi::IndexedViewRange::getSizeOverride ( )
overrideprotectedvirtual
PropertyObjectSharedPtr kanzi::IndexedViewRange::getPropertyObjectByIndexOverride ( size_t  index)
overrideprotectedvirtual
bool kanzi::IndexedViewRange::getPropertyValueByIndexOverride ( size_t  index,
AbstractPropertyType  propertyType,
Variant value 
)
overrideprotectedvirtual
bool kanzi::IndexedViewRange::getValueByIndexOverride ( size_t  index,
Variant value 
)
overrideprotectedvirtual

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