distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
IntrusiveForwardListIterator class is an iterator of elements on IntrusiveForwardList. More...
#include "estd/IntrusiveForwardList.hpp"
Public Types | |
using | difference_type = ptrdiff_t |
difference type More... | |
using | iterator_category = std::forward_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... | |
Public Member Functions | |
constexpr | IntrusiveForwardListIterator () |
IntrusiveForwardListIterator's constructor. More... | |
constexpr | IntrusiveForwardListIterator (IntrusiveForwardListNode *const node) |
IntrusiveForwardListIterator's constructor. More... | |
constexpr | IntrusiveForwardListIterator (reference element) |
IntrusiveForwardListIterator's constructor. More... | |
pointer | operator-> () const |
IntrusiveForwardListIterator's binary infix pointer member access operator. More... | |
reference | operator * () const |
IntrusiveForwardListIterator's unary prefix dereference operator. More... | |
IntrusiveForwardListIterator & | operator++ () |
IntrusiveForwardListIterator's unary prefix increment operator. More... | |
IntrusiveForwardListIterator | operator++ (int) |
IntrusiveForwardListIterator's unary postfix increment operator. More... | |
bool | operator== (const IntrusiveForwardListIterator &other) const |
IntrusiveForwardListIterator's "equal to" comparison operator. More... | |
Private Member Functions | |
pointer | getPointer () const |
Converts contained pointer to IntrusiveForwardListNode to pointer to object that contains this node. More... | |
Private Attributes | |
IntrusiveForwardListNode * | node_ |
pointer to IntrusiveForwardListNode of the object "pointed to" by the iterator More... | |
IntrusiveForwardListIterator class is an iterator of elements on IntrusiveForwardList.
This class provides an interface similar to std::forward_list::iterator.
T | is the type that has the IntrusiveForwardListNode variable |
NodePointer | is a pointer-to-member to IntrusiveForwardListNode 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::IntrusiveForwardListIterator< T, NodePointer, U >::difference_type = ptrdiff_t |
difference type
using estd::IntrusiveForwardListIterator< T, NodePointer, U >::iterator_category = std::forward_iterator_tag |
category of the iterator
using estd::IntrusiveForwardListIterator< T, NodePointer, U >::pointer = U* |
pointer to object "pointed to" by the iterator
using estd::IntrusiveForwardListIterator< T, NodePointer, U >::reference = U& |
reference to object "pointed to" by the iterator
using estd::IntrusiveForwardListIterator< T, NodePointer, U >::value_type = U |
value "pointed to" by the iterator
|
inline |
IntrusiveForwardListIterator's constructor.
|
inlineexplicit |
IntrusiveForwardListIterator's constructor.
[in] | node | is a pointer to IntrusiveForwardListNode of element that will be "pointed to" by the iterator |
|
inlineexplicit |
IntrusiveForwardListIterator's constructor.
[in] | element | is a reference to element that will be "pointed to" by the iterator |
|
inlineprivate |
Converts contained pointer to IntrusiveForwardListNode to pointer to object that contains this node.
|
inline |
IntrusiveForwardListIterator's unary prefix dereference operator.
|
inline |
IntrusiveForwardListIterator's unary prefix increment operator.
|
inline |
IntrusiveForwardListIterator's unary postfix increment operator.
|
inline |
IntrusiveForwardListIterator's binary infix pointer member access operator.
|
inline |
IntrusiveForwardListIterator's "equal to" comparison operator.
[in] | other | is a const reference to IntrusiveForwardListIterator on right-hand side of equality operator |
|
private |
pointer to IntrusiveForwardListNode of the object "pointed to" by the iterator