|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Iterator specialized for DynSlist returning payload references.
More...
#include <tpl_dynSlist.H>
Public Types | |
| typedef Slist< T > | Set_Type |
| Type of the data structure being iterated. | |
| typedef T | Item_Type |
Type returned by get_curr(). | |
Public Types inherited from Aleph::Slist< T >::Iterator | |
| typedef Snode< T > | Set_Type |
| Type of the set being iterated. | |
| typedef Snode< T > * | Item_Type |
| Type of the element returned by get_curr(). | |
Public Member Functions | |
| Iterator (DynSlist &list) | |
| Constructor. | |
| T & | get_curr () |
| Return a reference to the current payload. | |
| const T & | get_curr () const |
| Return a const reference to the current payload. | |
Public Member Functions inherited from Aleph::Slist< T >::Iterator | |
| Iterator (Slist &_list) noexcept | |
Construct an iterator over list. | |
| bool | has_curr () const noexcept |
| Return true if the iterator currently points to a node. | |
| Node * | get_curr () |
| Return the current node. | |
| void | next () |
| Advance the iterator to the next node. | |
| void | reset_first () noexcept |
| Reset the iterator to the first node of the list. | |
| Iterator & | operator= (Node *node) |
Assign the iterator to point to node. | |
Iterator specialized for DynSlist returning payload references.
Definition at line 346 of file tpl_dynSlist.H.
Type returned by get_curr().
Definition at line 352 of file tpl_dynSlist.H.
Type of the data structure being iterated.
Definition at line 350 of file tpl_dynSlist.H.
|
inlineexplicit |
Constructor.
Definition at line 355 of file tpl_dynSlist.H.
|
inline |
Return a reference to the current payload.
Definition at line 358 of file tpl_dynSlist.H.
References Aleph::Slist< T >::Iterator::get_curr(), and Aleph::Snode< T >::get_data().
Referenced by TEST().
Return a const reference to the current payload.
Definition at line 361 of file tpl_dynSlist.H.
References Aleph::Slist< T >::Iterator::get_curr(), and Aleph::Snode< T >::get_data().