utils-lists 4.0.0
µOS++ C++ intrusive lists utilities
|
A class template for a double linked list forward iterator. More...
#include <micro-os-plus/utils/lists.h>
Public Types | |
using | difference_type = ptrdiff_t |
Type of pointer difference. | |
using | iterator_category = std::forward_iterator_tag |
Category of iterator. | |
using | iterator_pointer = N* |
Type of reference to the iterator internal pointer. | |
using | pointer = value_type* |
Type of pointer to object "pointed to" by the iterator. | |
using | reference = value_type& |
Type of reference to object "pointed to" by the iterator. | |
using | value_type = U |
Type of value "pointed to" by the iterator. | |
Public Member Functions | |
constexpr | double_list_iterator () |
constexpr | double_list_iterator (iterator_pointer const node) |
constexpr | double_list_iterator (reference element) |
constexpr iterator_pointer | get_iterator_pointer () const |
constexpr pointer | get_pointer () const |
constexpr bool | operator!= (const double_list_iterator &other) const |
constexpr reference | operator* () const |
constexpr double_list_iterator & | operator++ () |
constexpr double_list_iterator | operator++ (int) |
constexpr double_list_iterator & | operator-- () |
constexpr double_list_iterator | operator-- (int) |
constexpr pointer | operator-> () const |
constexpr bool | operator== (const double_list_iterator &other) const |
Protected Attributes | |
iterator_pointer | node_ |
Pointer to the node. | |
A class template for a double linked list forward iterator.
T | Type of object returned by the iterator. |
N | Type of intrusive node. Must have the public members previous & next. |
U | Type stored in the list, derived from T. |
This class provides an interface similar to std::list::iterator
.
In a common double linked list, all types are double_list_links
.
using micro_os_plus::utils::double_list_iterator< T, N, U >::difference_type = ptrdiff_t |
using micro_os_plus::utils::double_list_iterator< T, N, U >::iterator_category = std::forward_iterator_tag |
using micro_os_plus::utils::double_list_iterator< T, N, U >::iterator_pointer = N* |
using micro_os_plus::utils::double_list_iterator< T, N, U >::pointer = value_type* |
using micro_os_plus::utils::double_list_iterator< T, N, U >::reference = value_type& |
using micro_os_plus::utils::double_list_iterator< T, N, U >::value_type = U |
|
constexpr |
|
explicitconstexpr |
|
explicitconstexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
protected |