Kanzi 3.9.10
kanzi::IndexedPropertyAccessRange::IndexedPropertyAccessRangeLocation Class Reference

Location implementation for indexed property access range. More...

#include <kanzi/core.ui/binding/property_access_range.hpp>

Inheritance diagram for kanzi::IndexedPropertyAccessRange::IndexedPropertyAccessRangeLocation:
[legend]

Static Public Member Functions

static AbstractRangeLocationPtr create (IndexedPropertyAccessRange &range, AbstractRangeLocationPtr location)
 Creates a new range location.
 

Protected Member Functions

bool advanceOverride () override
 AbstractRangeLocation::advanceOverride() implementation.
 
AbstractRangeLocationPtr cloneOverride () override
 AbstractRangeLocation::cloneOverride() implementation.
 
PropertyObjectSharedPtr getPropertyObjectOverride () override
 AbstractRangeLocation::getPropertyObjectOverride() implementation.
 
bool getPropertyValueOverride (AbstractPropertyType propertyType, Variant &value) override
 AbstractRangeLocation::getPropertyValueOverride() implementation.
 
IndexedPropertyAccessRangegetRange ()
 Accesses the range with correct type.
 
const IndexedPropertyAccessRangegetRange () const
 Accesses the range with correct type.
 
bool getValueOverride (Variant &value) override
 AbstractRangeLocation::getValueOverride() implementation.
 
 IndexedPropertyAccessRangeLocation (IndexedPropertyAccessRange &range, AbstractRangeLocationPtr location)
 Constructor.
 
bool isValidOverride () const override
 AbstractRangeLocation::isValidOverride() implementation.
 
bool matchesOverride (const AbstractRangeLocation &other) const override
 AbstractRangeLocation::matchesOverride() implementation.
 
- Protected Member Functions inherited from kanzi::AbstractRangeLocation
 AbstractRangeLocation (AbstractRange &range)
 Constructor.
 

Protected Attributes

AbstractRangeLocationPtr m_location
 Location into the source range.
 
- Protected Attributes inherited from kanzi::AbstractRangeLocation
AbstractRangem_range
 Reference to source range.
 

Additional Inherited Members

- Public Member Functions inherited from kanzi::AbstractRangeLocation
bool advance ()
 Advances the location.
 
unique_ptr< AbstractRangeLocationclone ()
 Returns a clone of this range location.
 
PropertyObjectSharedPtr getPropertyObject ()
 Access to a property object at the location.
 
bool getPropertyValue (AbstractPropertyType propertyType, Variant &value)
 Access a property in a property object at a location.
 
AbstractRangegetRange ()
 Returns a reference to the range being iterated.
 
const AbstractRangegetRange () const
 Returns a const reference to the range being iterated.
 
bool getValue (Variant &value)
 Access a value from a location.
 
bool isValid () const
 Indicates whether the location is valid.
 
bool matches (const AbstractRangeLocation &other) const
 Indicates whether a range location matches another.
 
 operator bool () const
 Cast to bool operator.
 
bool operator!= (const AbstractRangeLocation &rhs) const
 Not equals operator.
 
bool operator== (const AbstractRangeLocation &rhs) const
 Equals operator.
 
virtual ~AbstractRangeLocation ()=default
 Destructor.
 

Detailed Description

Location implementation for indexed property access range.

Constructor & Destructor Documentation

◆ IndexedPropertyAccessRangeLocation()

kanzi::IndexedPropertyAccessRange::IndexedPropertyAccessRangeLocation::IndexedPropertyAccessRangeLocation ( IndexedPropertyAccessRange & range,
AbstractRangeLocationPtr location )
inlineexplicitprotected

Constructor.

Parameters
rangeParent range.
locationLocation into the source range.

Member Function Documentation

◆ create()

static AbstractRangeLocationPtr kanzi::IndexedPropertyAccessRange::IndexedPropertyAccessRangeLocation::create ( IndexedPropertyAccessRange & range,
AbstractRangeLocationPtr location )
inlinestatic

Creates a new range location.

Parameters
rangeParent range.
locationLocation into the source range.
Returns
Indexed property access range location.

◆ getRange() [1/2]

IndexedPropertyAccessRange & kanzi::IndexedPropertyAccessRange::IndexedPropertyAccessRangeLocation::getRange ( )
inlineprotected

Accesses the range with correct type.

Returns
Casted range.

◆ getRange() [2/2]

const IndexedPropertyAccessRange & kanzi::IndexedPropertyAccessRange::IndexedPropertyAccessRangeLocation::getRange ( ) const
inlineprotected

Accesses the range with correct type.

Returns
Casted range.

◆ cloneOverride()

AbstractRangeLocationPtr kanzi::IndexedPropertyAccessRange::IndexedPropertyAccessRangeLocation::cloneOverride ( )
overrideprotectedvirtual

◆ matchesOverride()

bool kanzi::IndexedPropertyAccessRange::IndexedPropertyAccessRangeLocation::matchesOverride ( const AbstractRangeLocation & other) const
overrideprotectedvirtual

◆ isValidOverride()

bool kanzi::IndexedPropertyAccessRange::IndexedPropertyAccessRangeLocation::isValidOverride ( ) const
overrideprotectedvirtual

◆ advanceOverride()

bool kanzi::IndexedPropertyAccessRange::IndexedPropertyAccessRangeLocation::advanceOverride ( )
overrideprotectedvirtual

◆ getPropertyObjectOverride()

PropertyObjectSharedPtr kanzi::IndexedPropertyAccessRange::IndexedPropertyAccessRangeLocation::getPropertyObjectOverride ( )
overrideprotectedvirtual

◆ getPropertyValueOverride()

bool kanzi::IndexedPropertyAccessRange::IndexedPropertyAccessRangeLocation::getPropertyValueOverride ( AbstractPropertyType propertyType,
Variant & value )
overrideprotectedvirtual

◆ getValueOverride()

bool kanzi::IndexedPropertyAccessRange::IndexedPropertyAccessRangeLocation::getValueOverride ( Variant & value)
overrideprotectedvirtual

Member Data Documentation

◆ m_location

AbstractRangeLocationPtr kanzi::IndexedPropertyAccessRange::IndexedPropertyAccessRangeLocation::m_location
protected

Location into the source range.


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