TypedValueRange is a template class for holding one type of object in a range. More...
#include <kanzi/core.ui/effect/shadow_effect_renderer2d.hpp>
Classes | |
class | TypedValueRangeLocation |
Location implementation for typed value range. More... | |
Public Types | |
using | const_iterator = typename vector< T >::const_iterator |
Const iterator type for values. More... | |
using | iterator = typename vector< T >::iterator |
Iterator type for values. More... | |
Public Member Functions | |
iterator | begin () |
Gets an iterator to the beginning of the range. More... | |
const_iterator | begin () const |
Gets an iterator to the beginning of the range. More... | |
const_iterator | cbegin () const |
Gets an iterator to the beginning of the range. More... | |
const_iterator | cend () const |
Gets an iterator to the end of the range. More... | |
void | clear () |
Clears all values from internal storage. More... | |
iterator | end () |
Gets an iterator to the end of the range. More... | |
const_iterator | end () const |
Gets an iterator to the end of the range. More... | |
vector< T >::reference | operator[] (size_t index) |
Access operator. More... | |
vector< T >::const_reference | operator[] (size_t index) const |
Const access operator. More... | |
void | push_back (const T &value) |
Appends a value to the end of internal storage. More... | |
void | push_back (T &&value) |
Appends a value to the end of internal storage. More... | |
void | setValue (size_t index, const T &value) |
Sets a value to the internal storage index. More... | |
size_t | size () const |
Tells the number of elements in the range. 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 | |
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... | |
Static Public Member Functions | |
static shared_ptr< TypedValueRange > | create () |
Creates a new typed value range. More... | |
Protected Attributes | |
vector< T > | m_values |
Container for single type of value. More... | |
TypedValueRange is a template class for holding one type of object in a range.
TypedValueRange is intended to be inherited by inherited by internal range implementations of range-producing classes.
The ability to access the TypedValueRange values directly is intended for the creator of the range to manipulate it. Regular access to the values should happen through the virtual interface.
using kanzi::TypedValueRange< T >::iterator = typename vector<T>::iterator |
Iterator type for values.
using kanzi::TypedValueRange< T >::const_iterator = typename vector<T>::const_iterator |
Const iterator type for values.
|
explicitprotecteddefault |
Default constructor.
|
inlinestatic |
Creates a new typed value range.
|
inline |
Appends a value to the end of internal storage.
value | Value to add. |
|
inline |
Appends a value to the end of internal storage.
value | Value to add. |
|
inline |
Sets a value to the internal storage index.
index | Index to set. |
value | Value to set. |
|
inline |
Clears all values from internal storage.
|
inline |
Gets an iterator to the beginning of the range.
|
inline |
Gets an iterator to the beginning of the range.
|
inline |
Gets an iterator to the beginning of the range.
|
inline |
Gets an iterator to the end of the range.
|
inline |
Gets an iterator to the end of the range.
|
inline |
Gets an iterator to the end of the range.
|
inline |
Tells the number of elements in the range.
|
inline |
Access operator.
index | Index to access. |
|
inline |
Const access operator.
index | Index to access. |
|
inlineoverrideprotectedvirtual |
AbstractRange::locationBeginOverride() implementation.
Implements kanzi::AbstractRange.
|
inlineoverrideprotectedvirtual |
AbstractIndexedRange::getSizeOverride() implementation.
Implements kanzi::AbstractIndexedRange.
|
inlineoverrideprotectedvirtual |
AbstractIndexedRange::getPropertyObjectByIndexOverride() implementation.
Implements kanzi::AbstractIndexedRange.
|
inlineoverrideprotectedvirtual |
AbstractIndexedRange::getPropertyValueByIndexOverride() implementation.
Implements kanzi::AbstractIndexedRange.
|
inlineoverrideprotectedvirtual |
AbstractIndexedRange::getValueByIndexeOverride() implementation.
Implements kanzi::AbstractIndexedRange.
|
protected |
Container for single type of value.