Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::DynSlist< T >::Iterator Class Reference

Iterator specialized for DynSlist returning payload references. More...

#include <tpl_dynSlist.H>

Inheritance diagram for Aleph::DynSlist< T >::Iterator:
[legend]
Collaboration diagram for Aleph::DynSlist< T >::Iterator:
[legend]

Public Types

typedef Slist< TSet_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< TSet_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.
 
Tget_curr ()
 Return a reference to the current payload.
 
const Tget_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.
 
Nodeget_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.
 
Iteratoroperator= (Node *node)
 Assign the iterator to point to node.
 

Detailed Description

template<typename T>
class Aleph::DynSlist< T >::Iterator

Iterator specialized for DynSlist returning payload references.

Definition at line 346 of file tpl_dynSlist.H.

Member Typedef Documentation

◆ Item_Type

template<typename T >
typedef T Aleph::DynSlist< T >::Iterator::Item_Type

Type returned by get_curr().

Definition at line 352 of file tpl_dynSlist.H.

◆ Set_Type

template<typename T >
typedef Slist<T> Aleph::DynSlist< T >::Iterator::Set_Type

Type of the data structure being iterated.

Definition at line 350 of file tpl_dynSlist.H.

Constructor & Destructor Documentation

◆ Iterator()

template<typename T >
Aleph::DynSlist< T >::Iterator::Iterator ( DynSlist list)
inlineexplicit

Constructor.

Definition at line 355 of file tpl_dynSlist.H.

Member Function Documentation

◆ get_curr() [1/2]

template<typename T >
T & Aleph::DynSlist< T >::Iterator::get_curr ( )
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().

◆ get_curr() [2/2]

template<typename T >
const T & Aleph::DynSlist< T >::Iterator::get_curr ( ) const
inline

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().


The documentation for this class was generated from the following file: