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

#include <tpl_dynArrayHeap.H>

Inheritance diagram for Aleph::DynArrayHeap< T, Compare >::Iterator:
[legend]
Collaboration diagram for Aleph::DynArrayHeap< T, Compare >::Iterator:
[legend]

Public Types

using Base = typename DynArray< T >::Iterator
 
- Public Types inherited from Aleph::DynArray< T >::Iterator
using Set_Type = DynArray
 

Public Member Functions

 Iterator (const DynArrayHeap &h) noexcept
 
 Iterator ()=default
 
bool has_curr () const noexcept
 
long get_pos () const noexcept
 
- Public Member Functions inherited from Aleph::DynArray< T >::Iterator
 Iterator () noexcept=default
 Default constructor creates an "end" iterator.
 
 Iterator (const DynArray &array) noexcept
 Initializes an iterator on array
 
bool has_curr () const noexcept
 Return true if there is current item.
 
bool is_last () const noexcept
 
Tget_curr_ne () const noexcept
 Return the current link guaranteeing no exception. Be careful.
 
Tget_curr () const
 Return the current item.
 
long get_pos () const noexcept
 Return the ordinal position of current item.
 
void next_ne () noexcept
 Move the iterator one position forward guaranteeing no exception.
 
void next ()
 Move the current a position forward.
 
void prev_ne () noexcept
 exception. Be careful.
 
void prev ()
 Move the current a position backward.
 
void reset_last () noexcept
 Reset the iterator to the last item.
 
void end () noexcept
 Put the iterator in the end state.
 
void reset_first () noexcept
 Reset the iterator to the first item.
 
void set_pos (const long pos) noexcept
 

Additional Inherited Members

- Protected Attributes inherited from Aleph::DynArray< T >::Iterator
DynArrayarray_ptr = nullptr
 
long curr_idx = 0
 

Detailed Description

template<typename T, class Compare = Aleph::less<T>>
struct Aleph::DynArrayHeap< T, Compare >::Iterator

Definition at line 306 of file tpl_dynArrayHeap.H.

Member Typedef Documentation

◆ Base

template<typename T , class Compare = Aleph::less<T>>
using Aleph::DynArrayHeap< T, Compare >::Iterator::Base = typename DynArray<T>::Iterator

Definition at line 308 of file tpl_dynArrayHeap.H.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

template<typename T , class Compare = Aleph::less<T>>
Aleph::DynArrayHeap< T, Compare >::Iterator::Iterator ( const DynArrayHeap h)
inlinenoexcept

Definition at line 310 of file tpl_dynArrayHeap.H.

References h, and Aleph::DynArray< T >::Iterator::next_ne().

◆ Iterator() [2/2]

template<typename T , class Compare = Aleph::less<T>>
Aleph::DynArrayHeap< T, Compare >::Iterator::Iterator ( )
default

Member Function Documentation

◆ get_pos()

template<typename T , class Compare = Aleph::less<T>>
long Aleph::DynArrayHeap< T, Compare >::Iterator::get_pos ( ) const
inlinenoexcept

Definition at line 323 of file tpl_dynArrayHeap.H.

◆ has_curr()

template<typename T , class Compare = Aleph::less<T>>
bool Aleph::DynArrayHeap< T, Compare >::Iterator::has_curr ( ) const
inlinenoexcept

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