|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Iterator on single links. More...
#include <htlist.H>
Public Member Functions | |
| Iterator () noexcept | |
| Iterator (Slinknc &list) noexcept | |
Initialize an iterator on the first node of list | |
| Iterator (Slinknc *_head, Slinknc *_curr) noexcept | |
Initialize an iterator on the list pointed by _head, but on a node pointed by curr | |
| bool | has_curr () const noexcept |
Return true if the iterator is positioned on a valid link. | |
| Slinknc * | get_curr () const |
| Return the current link on which the iterator is positioned. | |
| Slinknc * | get_curr_ne () const noexcept |
| Return the current link guaranteeing no exception. Be careful. | |
| void | next_ne () noexcept |
| Move the iterator one position forward guaranteeing no exception. | |
| void | next () |
| Move the iterator one position forward. | |
| void | reset_first () noexcept |
| Reset the iterator to the first link on the list. | |
Private Member Functions | |
| void | init () noexcept |
Private Attributes | |
| Slinknc * | head |
| Slinknc * | curr |
|
inlinenoexcept |
Initialize an iterator on the first node of list
Definition at line 231 of file htlist.H.
References Aleph::init.
|
inline |
Return the current link on which the iterator is positioned.
Throw overflow_error if there is no current link.
Definition at line 273 of file htlist.H.
References ah_overflow_error_if, Aleph::has_curr(), and Aleph::maps().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineprivatenoexcept |
Definition at line 216 of file htlist.H.
References Aleph::Slinknc::is_empty(), Aleph::maps(), and Aleph::Slinknc::next.
|
inline |
Move the iterator one position forward.
Throw overflow_error if there is no current link.
Definition at line 296 of file htlist.H.
References ah_overflow_error_if, Aleph::has_curr(), Aleph::maps(), and Aleph::Slinknc::next.
|
inlinenoexcept |
Move the iterator one position forward guaranteeing no exception.
Be careful.
Definition at line 285 of file htlist.H.
References Aleph::Slinknc::next.
|
inlinenoexcept |
Reset the iterator to the first link on the list.
Definition at line 306 of file htlist.H.
References Aleph::init.
Referenced by TEST_F().