Base class for iterator and const_iterator. More...
#include <kanzi/core/cpp/indexed_list.hpp>
Public Types | |
| using | difference_type |
| Difference type. Required for stable_partition. | |
| using | iterator_category |
| Iterator category. | |
| using | value_type |
| Value type. | |
Public Member Functions | |
| size_t | getIndex () const |
| Gets the index the iterator is pointing at. | |
| IteratorBase (const IteratorBase &other)=default | |
| Copy constructor. | |
| IteratorBase (HostType &host) | |
| Constructor to end. | |
| IteratorBase (HostType &host, size_t index) | |
| Constructor to given index. | |
| IteratorBase (IteratorBase &&other)=default | |
| Move constructor. | |
| bool | iteratorEquals (const HostType *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. | |
Protected Attributes | |
| HostType * | m_host |
| Host list. | |
| size_t | m_index |
| Index being iterated. | |
Base class for iterator and const_iterator.
| using kanzi::indexed_list< T >::IteratorBase< HostType >::difference_type |
Difference type. Required for stable_partition.
| using kanzi::indexed_list< T >::IteratorBase< HostType >::iterator_category |
Iterator category.
| using kanzi::indexed_list< T >::IteratorBase< HostType >::value_type |
Value type.
|
inlineexplicit |
Constructor to end.
| host | Host container. |
|
inlineexplicit |
Constructor to given index.
| host | Host container. |
| index | Index to point at. |
|
default |
Copy constructor.
| other | Source iterator. |
|
default |
Move constructor.
| other | Source iterator. |
|
default |
Copy operator.
| other | Source iterator. |
|
default |
Move operator.
| other | Source iterator. |
|
inline |
Gets the index the iterator is pointing at.
|
inline |
Indicates whether this iterator equals given parameters.
| otherHost | Another host. |
| otherIndex | Another index. |
|
inline |
Const dereference operator.
|
inline |
Const member access operator.
|
protected |
Host list.
|
protected |
Index being iterated.