#include <tpl_dynListQueue.H>
|
|
| Iterator (const DynListQueue< T > &q) noexcept |
| |
|
T & | get_curr_ne () const noexcept |
| | Return the current link guaranteeing no exception. Be careful.
|
| |
| T & | get_curr () const |
| |
| T | del () |
| |
| void | reset () noexcept |
| |
| long | get_pos () const noexcept |
| |
| void | reset_first () noexcept |
| |
|
void | reset_last () |
| | It has O(n) of performance.
|
| |
| void | end () noexcept |
| |
| bool | has_curr () const noexcept |
| |
|
bool | is_last () const noexcept |
| |
|
bool | is_in_first () const noexcept |
| | Return true if the iterator is positioned on the first item.
|
| |
|
bool | is_in_last () const noexcept |
| | Return true if the iterator is positioned on the last item.
|
| |
| void | next_ne () noexcept |
| |
| void | next () |
| |
|
Slinknc * | del_ne () noexcept |
| |
template<typename T>
struct Aleph::DynListQueue< T >::Iterator
Iterator on elements of a queue.
The visit order is from the youngest to the oldest item
◆ del()
template<typename T = int>
Remove the current item of the iterator.
del() removes the current item and advance forward the iterator to the next item.
- Returns
- a moved copy of removed item (moved because the original will be destroyed)
- Exceptions
-
| overflow_error | if the iterator has not current item |
◆ end()
| void Aleph::HTList::Iterator::end |
( |
| ) |
|
|
inlinenoexceptinherited |
Set the iterator to its end position, which has not current item.
◆ get_curr()
template<typename T = int>
Return the current item
- Returns
- a modifiable reference to the current item
- Exceptions
-
| overflow_error | if the iterator has not current item |
◆ get_pos()
| long Aleph::HTList::Iterator::get_pos |
( |
| ) |
const |
|
inlinenoexceptinherited |
Return the current position
◆ has_curr()
| bool Aleph::HTList::Iterator::has_curr |
( |
| ) |
const |
|
inlinenoexceptinherited |
Return true if iterator has current item
◆ next()
| void Aleph::HTList::Iterator::next |
( |
| ) |
|
|
inlineinherited |
Move the iterator one item forward. Throw overflow_error if iterator has not current item
◆ next_ne()
| void Aleph::HTList::Iterator::next_ne |
( |
| ) |
|
|
inlinenoexceptinherited |
Move the iterator one position forward guaranteeing no exception. Be careful.
◆ reset()
| void Aleph::HTList::Iterator::reset |
( |
| ) |
|
|
inlinenoexceptinherited |
Reset the iterator at the first item
◆ reset_first()
| void Aleph::HTList::Iterator::reset_first |
( |
| ) |
|
|
inlinenoexceptinherited |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
The documentation for this struct was generated from the following file: