Const iterator over the values. More...
#include <kanzi/core/cpp/indexed_list.hpp>
Public Types | |
| using | difference_type |
| Difference type. | |
| using | iterator_category |
| Iterator category. | |
| using | parent_type |
| Parent class type. | |
| using | pointer |
| Pointer type. | |
| using | reference |
| Reference type. | |
| using | value_type |
| Value type. | |
Public Types inherited from kanzi::indexed_list< T >::IteratorBase< const indexed_list > | |
| using | difference_type |
| Difference type. Required for stable_partition. | |
| using | iterator_category |
| Iterator category. | |
| using | value_type |
| Value type. | |
Public Member Functions | |
| const_iterator (const const_iterator &other)=default | |
| Default copy constructor. | |
| const_iterator (const indexed_list &host) | |
| Default constructor. | |
| const_iterator (const indexed_list &host, size_t index) | |
| Constructor to given index. | |
| const_iterator (const_iterator &&other)=default | |
| Default move constructor. | |
| const element_type & | getElement () const |
| Gets a reference to the element at location. | |
| bool | operator!= (const const_iterator &other) const |
| Not equals operator. | |
| const_iterator & | operator++ () |
| Increment operator (prefix). | |
| const_iterator | operator++ (int) |
| Increment operator (postfix). | |
| const_iterator & | operator-- () |
| Decrement operator (prefix). | |
| const_iterator | operator-- (int) |
| Decrement operator (postfix). | |
| const_iterator & | operator= (const const_iterator &other)=default |
| Default copy operator. | |
| const_iterator & | operator= (const_iterator &&other)=default |
| Default move operator. | |
| bool | operator== (const const_iterator &other) const |
| Equals operator. | |
Public Member Functions inherited from kanzi::indexed_list< T >::IteratorBase< const indexed_list > | |
| size_t | getIndex () const |
| Gets the index the iterator is pointing at. | |
| IteratorBase (const indexed_list &host) | |
| Constructor to end. | |
| IteratorBase (const indexed_list &host, size_t index) | |
| Constructor to given index. | |
| IteratorBase (const IteratorBase &other)=default | |
| Copy constructor. | |
| IteratorBase (IteratorBase &&other)=default | |
| Move constructor. | |
| bool | iteratorEquals (const const indexed_list *otherHost, size_t otherIndex) const |
| Indicates whether this iterator equals given parameters. | |
| const T & | operator* () const |
| Const dereference operator. | |
| const T * | operator-> () const |
| Const member access operator. | |
| IteratorBase & | operator= (const IteratorBase &other)=default |
| Copy operator. | |
| IteratorBase & | operator= (IteratorBase &&other)=default |
| Move operator. | |
Additional Inherited Members | |
Protected Attributes inherited from kanzi::indexed_list< T >::IteratorBase< const indexed_list > | |
| const indexed_list * | m_host |
| Host list. | |
| size_t | m_index |
| Index being iterated. | |
Const iterator over the values.
Not invalidated if the container is resized.
| using kanzi::indexed_list< T >::const_iterator::parent_type |
Parent class type.
| using kanzi::indexed_list< T >::const_iterator::difference_type |
Difference type.
| using kanzi::indexed_list< T >::const_iterator::iterator_category |
Iterator category.
| using kanzi::indexed_list< T >::const_iterator::value_type |
Value type.
| using kanzi::indexed_list< T >::const_iterator::pointer |
Pointer type.
| using kanzi::indexed_list< T >::const_iterator::reference |
Reference type.
|
inlineexplicit |
Default constructor.
Qualifies as invalid iterator or end.
| host | Host list. |
|
inlineexplicit |
Constructor to given index.
| host | Host list. |
| index | Index to point at. |
|
default |
Default copy constructor.
| other | Source iterator. |
|
default |
Default move constructor.
| other | Source iterator. |
|
default |
Default copy operator.
| other | Source iterator. |
|
default |
Default move operator.
| other | Source iterator. |
|
inline |
Gets a reference to the element at location.
|
inline |
Increment operator (prefix).
|
inline |
Increment operator (postfix).
|
inline |
Decrement operator (prefix).
|
inline |
Decrement operator (postfix).
|
inline |
Equals operator.
| other | Other iterator. |
|
inline |
Not equals operator.
| other | Other iterator. |