|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
#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 |
| 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 () |
| 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 204 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 235 of file htlist.H.
References ah_overflow_error_if, Aleph::divide_and_conquer_partition_dp(), and Aleph::has_curr().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineprivatenoexcept |
Definition at line 190 of file htlist.H.
References Aleph::divide_and_conquer_partition_dp(), Aleph::Slinknc::is_empty(), and Aleph::Slinknc::next.
|
inline |
Move the iterator one position forward. Throw `overflow_error`
if there is no current link.
Definition at line 254 of file htlist.H.
References ah_overflow_error_if, Aleph::divide_and_conquer_partition_dp(), Aleph::has_curr(), and Aleph::Slinknc::next.
|
inlinenoexcept |
Move the iterator one position forward guaranteeing no exception.
Be careful.
Definition at line 247 of file htlist.H.
References Aleph::Slinknc::next.
|
inlinenoexcept |
Reset the iterator to the first link on the list.
Definition at line 263 of file htlist.H.
References Aleph::init.
Referenced by TEST_F().