Kanzi  3.9.7
Kanzi Engine API
kanzi::ValueRange::ValueRangeLocation Class Reference

Location implementation for typed value range. More...

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

Inheritance diagram for kanzi::ValueRange::ValueRangeLocation:
[legend]

Static Public Member Functions

static AbstractRangeLocationPtr create (ValueRange &range, iterator iter)
 Creates a new range location. More...
 

Protected Member Functions

bool advanceOverride () override
 AbstractValueRangeLocation::matchesOverride() implementation. More...
 
AbstractRangeLocationPtr cloneOverride () override
 AbstractValueRangeLocation::cloneOverride() implementation. More...
 
PropertyObjectSharedPtr getPropertyObjectOverride () override
 AbstractValueRangeLocation::matchesOverride() implementation. More...
 
bool getPropertyValueOverride (AbstractPropertyType propertyType, Variant &value) override
 AbstractValueRangeLocation::getPropertyValueOverride() implementation. More...
 
ValueRangegetRange ()
 Accesses the range with correct type. More...
 
const ValueRangegetRange () const
 Accesses the range with correct type. More...
 
bool getValueOverride (Variant &value) override
 AbstractValueRangeLocation::getValueOverride() implementation. More...
 
bool isValidOverride () const override
 AbstractValueRangeLocation::isValidOverride() implementation. More...
 
bool matchesOverride (const AbstractRangeLocation &other) const override
 AbstractValueRangeLocation::matchesOverride() implementation. More...
 
 ValueRangeLocation (ValueRange &range, iterator iter)
 Constructor. More...
 
- Protected Member Functions inherited from kanzi::AbstractRangeLocation
 AbstractRangeLocation (AbstractRange &range)
 Constructor. More...
 

Protected Attributes

iterator m_iter
 Iterator into the range. More...
 
- Protected Attributes inherited from kanzi::AbstractRangeLocation
AbstractRangem_range
 Reference to source range. More...
 

Additional Inherited Members

- Public Member Functions inherited from kanzi::AbstractRangeLocation
bool advance ()
 Advances the location. More...
 
unique_ptr< AbstractRangeLocationclone ()
 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...
 
AbstractRangegetRange ()
 Returns a reference to the range being iterated. More...
 
const AbstractRangegetRange () 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...
 

Detailed Description

Location implementation for typed value range.

Constructor & Destructor Documentation

kanzi::ValueRange::ValueRangeLocation::ValueRangeLocation ( ValueRange range,
iterator  iter 
)
inlineexplicitprotected

Constructor.

Parameters
rangeParent range.
iterIterator into the range.

Member Function Documentation

static AbstractRangeLocationPtr kanzi::ValueRange::ValueRangeLocation::create ( ValueRange range,
iterator  iter 
)
inlinestatic

Creates a new range location.

Parameters
rangeParent range.
iterIterator into the range.
Returns
Range location.
ValueRange& kanzi::ValueRange::ValueRangeLocation::getRange ( )
inlineprotected

Accesses the range with correct type.

Returns
Casted range.
const ValueRange& kanzi::ValueRange::ValueRangeLocation::getRange ( ) const
inlineprotected

Accesses the range with correct type.

Returns
Casted range.
AbstractRangeLocationPtr kanzi::ValueRange::ValueRangeLocation::cloneOverride ( )
overrideprotectedvirtual

AbstractValueRangeLocation::cloneOverride() implementation.

Implements kanzi::AbstractRangeLocation.

bool kanzi::ValueRange::ValueRangeLocation::matchesOverride ( const AbstractRangeLocation other) const
overrideprotectedvirtual

AbstractValueRangeLocation::matchesOverride() implementation.

Implements kanzi::AbstractRangeLocation.

bool kanzi::ValueRange::ValueRangeLocation::isValidOverride ( ) const
overrideprotectedvirtual

AbstractValueRangeLocation::isValidOverride() implementation.

Implements kanzi::AbstractRangeLocation.

bool kanzi::ValueRange::ValueRangeLocation::advanceOverride ( )
overrideprotectedvirtual

AbstractValueRangeLocation::matchesOverride() implementation.

Implements kanzi::AbstractRangeLocation.

PropertyObjectSharedPtr kanzi::ValueRange::ValueRangeLocation::getPropertyObjectOverride ( )
overrideprotectedvirtual

AbstractValueRangeLocation::matchesOverride() implementation.

Implements kanzi::AbstractRangeLocation.

bool kanzi::ValueRange::ValueRangeLocation::getPropertyValueOverride ( AbstractPropertyType  propertyType,
Variant value 
)
overrideprotectedvirtual

AbstractValueRangeLocation::getPropertyValueOverride() implementation.

Implements kanzi::AbstractRangeLocation.

bool kanzi::ValueRange::ValueRangeLocation::getValueOverride ( Variant value)
overrideprotectedvirtual

AbstractValueRangeLocation::getValueOverride() implementation.

Implements kanzi::AbstractRangeLocation.

Member Data Documentation

iterator kanzi::ValueRange::ValueRangeLocation::m_iter
protected

Iterator into the range.


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