libhatchet
Loading...
Searching...
No Matches
hxhash_table< node_t_, deleter_t_, multi_t_, table_size_bits_ >::iterator Class Reference

#include <hxhash_table.hpp>

Public Member Functions

 iterator (hxhash_table *tbl_)
 iterator (void)
iteratoroperator++ (void)
iterator operator++ (int)
node_t_ & operator* (void) const
node_t_ * operator-> (void) const
Public Member Functions inherited from hxhash_table< node_t_, deleter_t_, multi_t_, table_size_bits_ >::const_iterator
 const_iterator (void)
const_iteratoroperator++ (void)
const_iterator operator++ (int)
bool operator== (const const_iterator &x_) const
const node_t_ & operator* (void) const
const node_t_ * operator-> (void) const

Friends

class hxhash_table

Detailed Description

template<hxhash_table_concept_ node_t_, typename deleter_t_ = hxdefault_delete, bool multi_t_ = false, uint32_t table_size_bits_ = hxallocator_dynamic_capacity>
class hxhash_table< node_t_, deleter_t_, multi_t_, table_size_bits_ >::iterator

iterator - A mutable iterator that can modify the elements of the hash table.

Constructor & Destructor Documentation

◆ iterator() [1/2]

template<hxhash_table_concept_ node_t_, typename deleter_t_ = hxdefault_delete, bool multi_t_ = false, uint32_t table_size_bits_ = hxallocator_dynamic_capacity>
hxhash_table< node_t_, deleter_t_, multi_t_, table_size_bits_ >::iterator::iterator ( hxhash_table * tbl_)
inline

Constructs an iterator pointing to the beginning of the hash table.

  • tbl : The hash table to iterate over.

◆ iterator() [2/2]

template<hxhash_table_concept_ node_t_, typename deleter_t_ = hxdefault_delete, bool multi_t_ = false, uint32_t table_size_bits_ = hxallocator_dynamic_capacity>
hxhash_table< node_t_, deleter_t_, multi_t_, table_size_bits_ >::iterator::iterator ( void )
inline

Constructs an iterator pointing to the end of the hash table.

Member Function Documentation

◆ operator*()

template<hxhash_table_concept_ node_t_, typename deleter_t_ = hxdefault_delete, bool multi_t_ = false, uint32_t table_size_bits_ = hxallocator_dynamic_capacity>
node_t_ & hxhash_table< node_t_, deleter_t_, multi_t_, table_size_bits_ >::iterator::operator* ( void ) const

Dereferences the iterator to access the current node_t.

◆ operator++() [1/2]

template<hxhash_table_concept_ node_t_, typename deleter_t_ = hxdefault_delete, bool multi_t_ = false, uint32_t table_size_bits_ = hxallocator_dynamic_capacity>
iterator hxhash_table< node_t_, deleter_t_, multi_t_, table_size_bits_ >::iterator::operator++ ( int )
inline

Advances the iterator to the next element (post-increment).

◆ operator++() [2/2]

template<hxhash_table_concept_ node_t_, typename deleter_t_ = hxdefault_delete, bool multi_t_ = false, uint32_t table_size_bits_ = hxallocator_dynamic_capacity>
iterator & hxhash_table< node_t_, deleter_t_, multi_t_, table_size_bits_ >::iterator::operator++ ( void )
inline

Advances the iterator to the next element.

◆ operator->()

template<hxhash_table_concept_ node_t_, typename deleter_t_ = hxdefault_delete, bool multi_t_ = false, uint32_t table_size_bits_ = hxallocator_dynamic_capacity>
node_t_ * hxhash_table< node_t_, deleter_t_, multi_t_, table_size_bits_ >::iterator::operator-> ( void ) const

Dereferences the iterator to access the current node_t's pointer.

◆ hxhash_table

template<hxhash_table_concept_ node_t_, typename deleter_t_ = hxdefault_delete, bool multi_t_ = false, uint32_t table_size_bits_ = hxallocator_dynamic_capacity>
friend class hxhash_table
friend

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