distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
IntrusiveListIterator class is an iterator of elements on IntrusiveList. More...
#include "estd/IntrusiveList.hpp"
Public Types | |
using | difference_type = ptrdiff_t |
difference type More... | |
using | iterator_category = std::bidirectional_iterator_tag |
category of the iterator More... | |
using | pointer = U * |
pointer to object "pointed to" by the iterator More... | |
using | reference = U & |
reference to object "pointed to" by the iterator More... | |
using | value_type = U |
value "pointed to" by the iterator More... | |
Private Member Functions | |
pointer | getPointer () const |
Converts contained pointer to IntrusiveListNode to pointer to object that contains this node. More... | |
Private Attributes | |
IntrusiveListNode * | node_ |
pointer to IntrusiveListNode of the object "pointed to" by the iterator More... | |
IntrusiveListIterator class is an iterator of elements on IntrusiveList.
This class provides an interface similar to std::list::iterator.
T | is the type that has the IntrusiveListNode variable |
NodePointer | is a pointer-to-member to IntrusiveListNode variable in T |
U | is the type that will be stored on the list; it can be different from T, but U* must be implicitly convertible to T* (so usually a type derived from T); default - T; |
using estd::IntrusiveListIterator< T, NodePointer, U >::difference_type = ptrdiff_t |
difference type
using estd::IntrusiveListIterator< T, NodePointer, U >::iterator_category = std::bidirectional_iterator_tag |
category of the iterator
using estd::IntrusiveListIterator< T, NodePointer, U >::pointer = U* |
pointer to object "pointed to" by the iterator
using estd::IntrusiveListIterator< T, NodePointer, U >::reference = U& |
reference to object "pointed to" by the iterator
using estd::IntrusiveListIterator< T, NodePointer, U >::value_type = U |
value "pointed to" by the iterator
|
inline |
IntrusiveListIterator's constructor.
|
inlineexplicit |
IntrusiveListIterator's constructor.
[in] | node | is a pointer to IntrusiveListNode of element that will be "pointed to" by the iterator |
|
inlineexplicit |
IntrusiveListIterator's constructor.
[in] | element | is a reference to element that will be "pointed to" by the iterator |
|
inlineprivate |
Converts contained pointer to IntrusiveListNode to pointer to object that contains this node.
|
inline |
IntrusiveListIterator's unary prefix dereference operator.
|
inline |
IntrusiveListIterator's unary prefix increment operator.
|
inline |
IntrusiveListIterator's unary postfix increment operator.
|
inline |
IntrusiveListIterator's unary prefix decrement operator.
|
inline |
IntrusiveListIterator's unary postfix decrement operator.
|
inline |
IntrusiveListIterator's binary infix pointer member access operator.
|
inline |
IntrusiveListIterator's "equal to" comparison operator.
[in] | other | is a const reference to IntrusiveListIterator on right-hand side of comparison operator |
|
private |
pointer to IntrusiveListNode of the object "pointed to" by the iterator