OS
v1.7.5
Documentation
|
A list iterator. More...
#include <list.hpp>
Public Member Functions | |
listIterator ()=delete | |
listIterator (list &xList, listDirection dir=listDirection::FORWARD, void *nodeOffset=nullptr) noexcept | |
Instantiate a list iterator for the given list. | |
bool | untilEnd (void) const noexcept |
Check until current iterator reach one of its ends. | |
bool | untilEnd (void *node) const noexcept |
Check until current iterator reach the given node. | |
listIterator & | operator++ (int) noexcept |
Move the iterator forward. | |
listIterator & | operator-- (int) noexcept |
Move the iterator backward. | |
template<typename T > | |
T | get (void) noexcept |
Gets the node that the iterator is currently pointing to. | |
A list iterator.
|
delete |
|
explicitnoexcept |
Instantiate a list iterator for the given list.
[in] | xList | The list |
[in] | dir | The direction in which the iterator will traverse the list |
[in] | nodeOffset | A pointer to the node offset in the list |
|
inlinenoexcept |
Gets the node that the iterator is currently pointing to.
|
noexcept |
Move the iterator forward.
|
noexcept |
Move the iterator backward.
|
noexcept |
Check until current iterator reach the given node.
[in] | node | A pointer to the node you want to reach |
true
if the iterator has reach the given node.
|
noexcept |
Check until current iterator reach one of its ends.
true
if the iterator has reach on of its ends.