distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
IntrusiveListConstIterator class is a const 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 = const U * |
pointer to object "pointed to" by the iterator More... | |
using | reference = const 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 | |
const IntrusiveListNode * | node_ |
pointer to const IntrusiveListNode of the object "pointed to" by the iterator More... | |
IntrusiveListConstIterator class is a const iterator of elements on IntrusiveList.
This class provides an interface similar to std::list::const_iterator.
T | is the type that has the IntrusiveListNode variable |
NodePointer | is a const 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::IntrusiveListConstIterator< T, NodePointer, U >::difference_type = ptrdiff_t |
difference type
using estd::IntrusiveListConstIterator< T, NodePointer, U >::iterator_category = std::bidirectional_iterator_tag |
category of the iterator
using estd::IntrusiveListConstIterator< T, NodePointer, U >::pointer = const U* |
pointer to object "pointed to" by the iterator
using estd::IntrusiveListConstIterator< T, NodePointer, U >::reference = const U& |
reference to object "pointed to" by the iterator
using estd::IntrusiveListConstIterator< T, NodePointer, U >::value_type = U |
value "pointed to" by the iterator
|
inline |
IntrusiveListConstIterator's constructor.
|
inlineexplicit |
IntrusiveListConstIterator's constructor.
[in] | node | is a pointer to const IntrusiveListNode of element that will be "pointed to" by the iterator |
|
inlineexplicit |
IntrusiveListConstIterator's constructor.
[in] | element | is a const reference to element that will be "pointed to" by the iterator |
|
inline |
IntrusiveListConstIterator's constructor.
Converts non-const iterator (IntrusiveListIterator) to const iterator (IntrusiveListConstIterator).
NonConstNodePointer | is a non-const version of NodePointer |
[in] | iterator | is a const reference to non-const iterator (IntrusiveListIterator) |
|
inlineprivate |
Converts contained pointer to IntrusiveListNode to pointer to object that contains this node.
|
inline |
IntrusiveListConstIterator's unary prefix dereference operator.
|
inline |
IntrusiveListConstIterator's unary prefix increment operator.
|
inline |
IntrusiveListConstIterator's unary postfix increment operator.
|
inline |
IntrusiveListConstIterator's unary prefix decrement operator.
|
inline |
IntrusiveListConstIterator's unary postfix decrement operator.
|
inline |
IntrusiveListConstIterator's binary infix pointer member access operator.
|
inline |
IntrusiveListConstIterator's "equal to" comparison operator.
[in] | other | is a const reference to IntrusiveListConstIterator on right-hand side of comparison operator |
|
private |
pointer to const IntrusiveListNode of the object "pointed to" by the iterator