|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Iterator for traversing elements of the stack. More...
#include <tpl_dynListStack.H>
Public Types | |
| using | Set_Type = DynListStack< T > |
| The container type this iterator operates on. | |
| using | Base = typename DynList< T >::Iterator |
| Base iterator type. | |
Public Types inherited from Aleph::DynList< T >::Iterator | |
| using | Item_Type = T |
| using | Iterator_Type = Iterator |
| The type of elements of list. | |
| using | Set_Type = DynList |
Public Member Functions | |
| Iterator (const DynListStack< T > &stack) noexcept | |
| Construct an iterator for a stack. | |
Public Member Functions inherited from Aleph::DynList< T >::Iterator | |
| Iterator () noexcept=default | |
| The type of container. | |
| Iterator (const DynList &list) noexcept | |
Initiliaze an iterator on the first item of list | |
| T & | get_curr_ne () const noexcept |
| Return the current link guaranteeing no exception. Be careful. | |
| T & | get_curr () const |
| Return the current item. | |
| T | del () |
| Remove the current item of the iterator. | |
Public Member Functions inherited from Aleph::HTList::Iterator | |
| Iterator () noexcept=default | |
| Iterator (const HTList &list) noexcept | |
Initialize iterator on at the first item of list | |
| void | reset () noexcept |
| Reset the iterator at the first item. | |
| long | get_pos () const noexcept |
| void | reset_first () noexcept |
| void | reset_last () |
| It has O(n) of performance. | |
| void | end () noexcept |
| Set the iterator to its end position, which has not. | |
| Iterator (const Iterator &)=default | |
| Iterator & | operator= (const Iterator &it) 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. | |
| 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 () |
| Slinknc * | del_ne () noexcept |
| Slinknc * | del () |
Iterator for traversing elements of the stack.
Provides forward iteration over stack elements in LIFO order (from top to bottom). This is the same order in which elements would be retrieved via successive pop() calls.
Definition at line 520 of file tpl_dynListStack.H.
| using Aleph::DynListStack< T >::Iterator::Base = typename DynList<T>::Iterator |
Base iterator type.
Definition at line 526 of file tpl_dynListStack.H.
| using Aleph::DynListStack< T >::Iterator::Set_Type = DynListStack<T> |
The container type this iterator operates on.
Definition at line 523 of file tpl_dynListStack.H.
|
inlinenoexcept |
Construct an iterator for a stack.
Creates an iterator positioned at the top of the stack.
| [in] | stack | The stack to iterate over. |
Definition at line 537 of file tpl_dynListStack.H.