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

Iterator on a list of Dnode objects. More...

#include <tpl_dnode.H>

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

Public Types

using Set_Type = Dnode< T >
 The type of set.
 
using Item_Type = Dnode< T > *
 The type of element of set.
 
using Base = Dlink::Iterator
 

Public Member Functions

Dnode< T > * get_curr_ne () const noexcept
 Return the current link guaranteeing no exception. Be careful.
 
Dnode< T > * get_curr () const
 Return a pointer to the current node.
 
Dnodedel ()
 Remove the current node of the list a return a pointer to the removed node.
 
Dnodedel_ne () noexcept
 Same as del() but without exception check.
 

Detailed Description

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

Iterator on a list of Dnode objects.

Definition at line 260 of file tpl_dnode.H.

Member Typedef Documentation

◆ Base

template<typename T >
using Aleph::Dnode< T >::Iterator::Base = Dlink::Iterator

Definition at line 270 of file tpl_dnode.H.

◆ Item_Type

template<typename T >
using Aleph::Dnode< T >::Iterator::Item_Type = Dnode<T>*

The type of element of set.

Definition at line 268 of file tpl_dnode.H.

◆ Set_Type

template<typename T >
using Aleph::Dnode< T >::Iterator::Set_Type = Dnode<T>

The type of set.

Definition at line 265 of file tpl_dnode.H.

Member Function Documentation

◆ del()

template<typename T >
Dnode * Aleph::Dnode< T >::Iterator::del ( )
inline

Remove the current node of the list a return a pointer to the removed node.

The iterator is moved on position forward.

Exceptions
overflow_errorif the iterator is not positioned on a current node

Definition at line 298 of file tpl_dnode.H.

References Aleph::Dlink::Iterator::del().

◆ del_ne()

template<typename T >
Dnode * Aleph::Dnode< T >::Iterator::del_ne ( )
inlinenoexcept

Same as del() but without exception check.

Definition at line 302 of file tpl_dnode.H.

References Aleph::Dlink::Iterator::del_ne().

◆ get_curr()

◆ get_curr_ne()

template<typename T >
Dnode< T > * Aleph::Dnode< T >::Iterator::get_curr_ne ( ) const
inlinenoexcept

Return the current link guaranteeing no exception. Be careful.

Definition at line 275 of file tpl_dnode.H.

References Aleph::Dlink::Iterator::get_curr_ne().

Referenced by Aleph::DynDlist< T >::Iterator::get_curr_ne().


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