Location class for indexed view range. More...
#include <kanzi/core/property/view_range.hpp>
Public Member Functions | |
ViewRange & | getRange () |
Accesses the range with correct type. More... | |
const ViewRange & | getRange () const |
Accesses the range with correct type. More... | |
Public Member Functions inherited from kanzi::AbstractRangeLocation | |
bool | advance () |
Advances the location. More... | |
unique_ptr< AbstractRangeLocation > | clone () |
Returns a clone of this range location. More... | |
PropertyObjectSharedPtr | getPropertyObject () |
Access to a property object at the location. More... | |
bool | getPropertyValue (AbstractPropertyType propertyType, Variant &value) |
Access a property in a property object at a location. More... | |
AbstractRange & | getRange () |
Returns a reference to the range being iterated. More... | |
const AbstractRange & | getRange () const |
Returns a const reference to the range being iterated. More... | |
bool | getValue (Variant &value) |
Access a value from a location. More... | |
bool | isValid () const |
Indicates whether the location is valid. More... | |
bool | matches (const AbstractRangeLocation &other) const |
Indicates whether a range location matches another. More... | |
operator bool () const | |
Cast to bool operator. More... | |
bool | operator!= (const AbstractRangeLocation &rhs) const |
Not equals operator. More... | |
bool | operator== (const AbstractRangeLocation &rhs) const |
Equals operator. More... | |
virtual | ~AbstractRangeLocation ()=default |
Destructor. More... | |
Static Public Member Functions | |
static AbstractRangeLocationPtr | create (ViewRange &range, AbstractRangeLocationPtr location, size_t remainingLength) |
Creates a new view range location. More... | |
Protected Attributes | |
AbstractRangeLocationPtr | m_location |
Location to the original range. More... | |
size_t | m_remainingLength |
Remaining length. More... | |
Protected Attributes inherited from kanzi::AbstractRangeLocation | |
AbstractRange & | m_range |
Reference to source range. More... | |
Location class for indexed view range.
|
inlineexplicitprotected |
Constructor.
range | Input range. |
location | Range location. |
remainingLength | Remaining length. |
|
inlinestatic |
Creates a new view range location.
range | Input range. |
location | Range location. |
remainingLength | Remaining length. |
|
inline |
Accesses the range with correct type.
|
inline |
Accesses the range with correct type.
|
overrideprotectedvirtual |
AbstractRangeLocation::cloneOverride() implementation.
Implements kanzi::AbstractRangeLocation.
|
overrideprotectedvirtual |
AbstractRangeLocation::matchesOverride() implementation.
Implements kanzi::AbstractRangeLocation.
|
overrideprotectedvirtual |
AbstractRangeLocation::isValidOverride() implementation.
Implements kanzi::AbstractRangeLocation.
|
overrideprotectedvirtual |
AbstractRangeLocation::advanceOverride() implementation.
Implements kanzi::AbstractRangeLocation.
|
overrideprotectedvirtual |
AbstractRangeLocation::getPropertyObjectOverride() implementation.
Implements kanzi::AbstractRangeLocation.
|
overrideprotectedvirtual |
AbstractRangeLocation::getPropertyValueOverride() implementation.
Implements kanzi::AbstractRangeLocation.
|
overrideprotectedvirtual |
AbstractRangeLocation::getValueOverride() implementation.
Implements kanzi::AbstractRangeLocation.
|
protected |
Location to the original range.
|
protected |
Remaining length.