Kanzi 3.9.10
kanzi::ViewRangeImpl Class Reference

View range internal implementation class. More...

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

Inheritance diagram for kanzi::ViewRangeImpl:
[legend]

Public Member Functions

AbstractRangegetSourceRange () 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.
 

Protected Member Functions

 ViewRangeImpl (AbstractRangeSharedPtr sourceRange, size_t length)
 Constructor.
 

Protected Attributes

size_t m_length
 Limiting length.
 
AbstractRangeSharedPtr m_sourceRange
 Source range.
 

Detailed Description

View range internal implementation class.

Aggregate class containing the common parts of implementation for ViewRange and IndexedViewRange.

Constructor & Destructor Documentation

◆ ViewRangeImpl()

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

Constructor.

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

Member Function Documentation

◆ getSourceRange()

AbstractRange * kanzi::ViewRangeImpl::getSourceRange ( ) const
inline

Gets the source range.

Returns
Pointer to the source range.

◆ setSourceRange()

void kanzi::ViewRangeImpl::setSourceRange ( AbstractRangeSharedPtr sourceRange)
inline

Sets the source range.

Parameters
sourceRangeSource range.
Since
Kanzi 3.9.6

◆ getViewLength()

size_t kanzi::ViewRangeImpl::getViewLength ( ) const
inline

Gets the length of the view.

Returns
View length.

◆ setViewLength()

void kanzi::ViewRangeImpl::setViewLength ( size_t viewLength)
inline

Sets the length of the view.

Parameters
viewLengthView length.
Since
Kanzi 3.9.6

Member Data Documentation

◆ m_sourceRange

AbstractRangeSharedPtr kanzi::ViewRangeImpl::m_sourceRange
protected

Source range.

◆ m_length

size_t kanzi::ViewRangeImpl::m_length
protected

Limiting length.


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