Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator Class Reference

#include <tpl_linHash.H>

Inheritance diagram for Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator:
[legend]
Collaboration diagram for Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator:
[legend]

Public Types

using Set_Type = GenLinearHashTable
 The set type being iterated over.
 
using Item_Type = Bucket *
 The element type returned by get_curr().
 

Public Member Functions

 Iterator (const GenLinearHashTable &table) noexcept
 Instantiate an iterator over the hash table.
 
 Iterator () noexcept
 Instantiate an empty iterator.
 
Bucketget_curr_ne () noexcept
 
Bucketget_curr ()
 Return the current bucket.
 
Bucketdel ()
 
void next_ne () noexcept
 
void next ()
 
void prev ()
 
long get_pos () const noexcept
 

Private Attributes

GenLinearHashTablehash_table = nullptr
 
long pos = 0
 

Detailed Description

template<typename Key, template< class > class BucketType, class Cmp = Aleph::equal_to<Key>>
class Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator

Definition at line 574 of file tpl_linHash.H.

Member Typedef Documentation

◆ Item_Type

template<typename Key , template< class > class BucketType, class Cmp = Aleph::equal_to<Key>>
using Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator::Item_Type = Bucket *

The element type returned by get_curr().

Definition at line 587 of file tpl_linHash.H.

◆ Set_Type

template<typename Key , template< class > class BucketType, class Cmp = Aleph::equal_to<Key>>
using Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator::Set_Type = GenLinearHashTable

The set type being iterated over.

Definition at line 584 of file tpl_linHash.H.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

template<typename Key , template< class > class BucketType, class Cmp = Aleph::equal_to<Key>>
Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator::Iterator ( const GenLinearHashTable table)
inlinenoexcept

Instantiate an iterator over the hash table.

Definition at line 590 of file tpl_linHash.H.

◆ Iterator() [2/2]

template<typename Key , template< class > class BucketType, class Cmp = Aleph::equal_to<Key>>
Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator::Iterator ( )
inlinenoexcept

Instantiate an empty iterator.

Definition at line 598 of file tpl_linHash.H.

Member Function Documentation

◆ del()

◆ get_curr()

template<typename Key , template< class > class BucketType, class Cmp = Aleph::equal_to<Key>>
Bucket * Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator::get_curr ( )
inline

Return the current bucket.

Definition at line 606 of file tpl_linHash.H.

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

◆ get_curr_ne()

template<typename Key , template< class > class BucketType, class Cmp = Aleph::equal_to<Key>>
Bucket * Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator::get_curr_ne ( )
inlinenoexcept

Definition at line 600 of file tpl_linHash.H.

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

Referenced by TEST().

◆ get_pos()

template<typename Key , template< class > class BucketType, class Cmp = Aleph::equal_to<Key>>
long Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator::get_pos ( ) const
inlinenoexcept

Definition at line 635 of file tpl_linHash.H.

References Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator::pos.

Referenced by TEST(), and TEST().

◆ next()

template<typename Key , template< class > class BucketType, class Cmp = Aleph::equal_to<Key>>
void Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator::next ( )
inline

Definition at line 623 of file tpl_linHash.H.

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

Referenced by TEST(), and TEST().

◆ next_ne()

template<typename Key , template< class > class BucketType, class Cmp = Aleph::equal_to<Key>>
void Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator::next_ne ( )
inlinenoexcept

Definition at line 617 of file tpl_linHash.H.

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

Referenced by TEST().

◆ prev()

template<typename Key , template< class > class BucketType, class Cmp = Aleph::equal_to<Key>>
void Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator::prev ( )
inline

Definition at line 629 of file tpl_linHash.H.

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

Referenced by TEST().

Member Data Documentation

◆ hash_table

template<typename Key , template< class > class BucketType, class Cmp = Aleph::equal_to<Key>>
GenLinearHashTable* Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator::hash_table = nullptr
private

◆ pos

template<typename Key , template< class > class BucketType, class Cmp = Aleph::equal_to<Key>>
long Aleph::GenLinearHashTable< Key, BucketType, Cmp >::Iterator::pos = 0
private

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