#include <dlink.H>
|
| | Iterator (Dlink *head_ptr) noexcept |
| |
| | Iterator (const Dlink &list) noexcept |
| |
| void | set (Dlink *new_curr) noexcept |
| |
|
void | reset_first () noexcept |
| | Reset the iterator to the first item of list.
|
| |
|
void | reset_last () noexcept |
| | Reset the iterator to the last item of list.
|
| |
|
void | end () noexcept |
| | Put the iterator out of range.
|
| |
|
bool | has_curr () const noexcept |
| | Return true if the iterator has current item.
|
| |
|
bool | is_last () const noexcept |
| |
|
Dlink * | get_curr_ne () const noexcept |
| | Return the current link guaranteeing no exception. Be careful.
|
| |
| Dlink * | get_curr () const |
| |
|
bool | is_in_first () const noexcept |
| | Return true if the iterator is positiones on the first item.
|
| |
|
bool | is_in_last () const noexcept |
| | Return true if the iterator is positiones on the last item.
|
| |
| void | prev_ne () noexcept |
| |
| void | prev () |
| |
| void | next_ne () noexcept |
| |
| void | next () |
| |
|
bool | operator== (const Iterator &it) const noexcept |
| | Return true if this and it are positioned on the same item.
|
| |
|
bool | operator!= (const Iterator &it) const noexcept |
| | Return true if this and it hace different states.
|
| |
| Dlink * | del () |
| |
|
Dlink * | del_ne () noexcept |
| |
|
bool | verify (Dlink *l) const |
| | Return true if the iterator is on the list pointed by l
|
| |
|
bool | verify (const Iterator &it) const |
| | Return true if this and it are on the same list.
|
| |
◆ Iterator() [1/2]
| Aleph::Dlink::Iterator::Iterator |
( |
Dlink * |
head_ptr | ) |
|
|
inlinenoexcept |
Initialize an iterator on the first item of the list pointed by head_ptr.
- Parameters
-
| [in] | head_ptr | pointer to the list (hedaer node) |
◆ Iterator() [2/2]
| Aleph::Dlink::Iterator::Iterator |
( |
const Dlink & |
list | ) |
|
|
inlinenoexcept |
Initialize an iterator on the first item of list.
- Parameters
-
| [in] | list | reference to the list |
◆ del()
| Dlink* Aleph::Dlink::Iterator::del |
( |
| ) |
|
|
inline |
Remove from the list the current node and move the iterator one position forward.
- Returns
- a pointer to removed item
◆ get_curr()
| Dlink* Aleph::Dlink::Iterator::get_curr |
( |
| ) |
const |
|
inline |
Return the current node of iterator
- Returns
- a pointer to the current node
- Exceptions
-
| overflow_error | if there is not current node |
◆ next()
| void Aleph::Dlink::Iterator::next |
( |
| ) |
|
|
inline |
Move the iterator one position forward
- Exceptions
-
| overflow_error | if there is no current item |
◆ next_ne()
| void Aleph::Dlink::Iterator::next_ne |
( |
| ) |
|
|
inlinenoexcept |
Move the iterator one position backward guaranteeing no exception. Be careful.
◆ prev()
| void Aleph::Dlink::Iterator::prev |
( |
| ) |
|
|
inline |
Move the iterator one position backward
- Exceptions
-
| underflow_error | if there is no current item |
◆ prev_ne()
| void Aleph::Dlink::Iterator::prev_ne |
( |
| ) |
|
|
inlinenoexcept |
Move the iterator one position backward guaranteeing no exception. Be careful.
◆ set()
| void Aleph::Dlink::Iterator::set |
( |
Dlink * |
new_curr | ) |
|
|
inlinenoexcept |
Set the current node .
This method set the current node to new_curr, which of course must be a valid pointer to a item in the list.
- Parameters
-
| [in] | new_curr | pointer to the new current item |
The documentation for this class was generated from the following file: