|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
#include <slink_nc.H>
Public Member Functions | |
| Iterator () | |
| Iterator (Slink_Nc *head_ptr) | |
| Iterator (Slink_Nc &_head) | |
| Iterator (Slink_Nc *head_ptr, Slink_Nc *curr_ptr) | |
| void | reset_first () |
| Resets iterator to the first node of the list. | |
| void | set (Slink_Nc *new_curr) |
| void | reset (Slink_Nc *new_head) |
| bool | has_curr () const |
| Slink_Nc * | get_curr_ne () const noexcept |
| Returns current node address. | |
| Slink_Nc * | get_curr () const |
| bool | is_in_first () const |
| Returns true if iterator is on the first element. | |
| void | next_ne () noexcept |
| Advances iterator by one position. | |
| void | next () |
| bool | operator== (const Iterator &it) const |
| Returns true if iterators are on the same element. | |
| bool | operator!= (const Iterator &it) const |
| Returns true if iterators have different states. | |
| bool | verify (Slink_Nc *l) const |
| bool | verify (const Iterator &it) const |
Private Attributes | |
| Slink_Nc * | head |
| Slink_Nc * | curr |
Definition at line 146 of file slink_nc.H.
|
inline |
Definition at line 153 of file slink_nc.H.
|
inline |
Definition at line 155 of file slink_nc.H.
|
inline |
Definition at line 160 of file slink_nc.H.
Definition at line 165 of file slink_nc.H.
|
inline |
Definition at line 202 of file slink_nc.H.
References ah_overflow_error_if, Aleph::divide_and_conquer_partition_dp(), get_curr_ne(), and has_curr().
Referenced by Aleph::Snode_Nc< T >::Iterator::get_curr().
|
inlinenoexcept |
Returns current node address.
Definition at line 196 of file slink_nc.H.
References Aleph::and, curr, Aleph::divide_and_conquer_partition_dp(), and head.
Referenced by get_curr().
|
inline |
Definition at line 189 of file slink_nc.H.
References curr, Aleph::divide_and_conquer_partition_dp(), and head.
Referenced by Aleph::Dyn_Slist_Nc< T >::Dyn_Slist_Nc(), get_curr(), next(), and Aleph::Dyn_Slist_Nc< T >::operator=().
|
inline |
Returns true if iterator is on the first element.
Definition at line 209 of file slink_nc.H.
References curr, head, and Aleph::Slink_Nc::next.
|
inline |
Definition at line 217 of file slink_nc.H.
References ah_overflow_error_if, Aleph::divide_and_conquer_partition_dp(), has_curr(), and next_ne().
|
inlinenoexcept |
Advances iterator by one position.
Definition at line 212 of file slink_nc.H.
References curr, and Aleph::Slink_Nc::get_next().
Referenced by next(), Aleph::Dyn_Slist_Nc< T >::operator[](), and Aleph::Dyn_Slist_Nc< T >::operator[]().
Returns true if iterators have different states.
Definition at line 227 of file slink_nc.H.
References curr.
Returns true if iterators are on the same element.
Definition at line 224 of file slink_nc.H.
References curr.
Definition at line 183 of file slink_nc.H.
References curr, Aleph::divide_and_conquer_partition_dp(), Aleph::Slink_Nc::get_next(), and head.
|
inline |
Resets iterator to the first node of the list.
Definition at line 171 of file slink_nc.H.
References Aleph::and, curr, Aleph::divide_and_conquer_partition_dp(), Aleph::Slink_Nc::get_next(), and head.
Definition at line 177 of file slink_nc.H.
References Aleph::and, curr, Aleph::divide_and_conquer_partition_dp(), and head.
Definition at line 231 of file slink_nc.H.
References head.
Definition at line 229 of file slink_nc.H.
|
private |
Definition at line 149 of file slink_nc.H.
Referenced by get_curr_ne(), has_curr(), is_in_first(), next_ne(), operator!=(), operator==(), reset(), reset_first(), and set().
|
private |
Definition at line 148 of file slink_nc.H.
Referenced by get_curr_ne(), has_curr(), is_in_first(), reset(), reset_first(), set(), verify(), and verify().