HashTable< T, Key, Hash >::key_iterator_base< Iter > Class Template Reference

An iterator wrapper for returning a reference to the key. More...

Inheritance diagram for HashTable< T, Key, Hash >::key_iterator_base< Iter >:
[legend]
Collaboration diagram for HashTable< T, Key, Hash >::key_iterator_base< Iter >:
[legend]

Public Types

using value_type = this_type::key_type
 
using pointer = const Key *
 
using reference = const Key &
 

Public Member Functions

constexpr key_iterator_base () noexcept
 Default construct (end iterator) More...
 
 key_iterator_base (const Iter &iter)
 Copy construct with implicit conversion. More...
 
reference operator* () const
 Return the key. More...
 
reference operator() () const
 
key_iterator_baseoperator++ ()
 
key_iterator_base operator++ (int)
 

Detailed Description

template<class T, class Key = word, class Hash = Foam::Hash<Key>>
template<class Iter>
class Foam::HashTable< T, Key, Hash >::key_iterator_base< Iter >

An iterator wrapper for returning a reference to the key.

Definition at line 832 of file HashTable.H.

Member Typedef Documentation

◆ value_type

Definition at line 838 of file HashTable.H.

◆ pointer

using pointer = const Key*

Definition at line 839 of file HashTable.H.

◆ reference

using reference = const Key&

Definition at line 840 of file HashTable.H.

Constructor & Destructor Documentation

◆ key_iterator_base() [1/2]

constexpr key_iterator_base ( )
inlineconstexprnoexcept

Default construct (end iterator)

Definition at line 843 of file HashTable.H.

◆ key_iterator_base() [2/2]

key_iterator_base ( const Iter &  iter)
inlineexplicit

Copy construct with implicit conversion.

Definition at line 849 of file HashTable.H.

Member Function Documentation

◆ operator*()

reference operator* ( ) const
inline

Return the key.

Definition at line 855 of file HashTable.H.

References Foam::glTF::key().

Here is the call graph for this function:

◆ operator()()

reference operator() ( ) const
inline

Definition at line 856 of file HashTable.H.

References Foam::glTF::key().

Here is the call graph for this function:

◆ operator++() [1/2]

key_iterator_base& operator++ ( )
inline

Definition at line 858 of file HashTable.H.

◆ operator++() [2/2]

key_iterator_base operator++ ( int  )
inline

Definition at line 864 of file HashTable.H.


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