MOS Source Code
Loading...
Searching...
No Matches
HashMap< Key, Value >::iterator Class Reference

#include <hashmap.hpp>

Collaboration diagram for HashMap< Key, Value >::iterator:

Public Member Functions

iteratoroperator++ ()
bool operator== (const iterator &other) const
entry_typeoperator* ()
entry_typeoperator-> ()
 operator bool ()

Private Member Functions

 iterator (HashMap *map, size_t bucket, chain *item)

Private Attributes

HashMapmap
chainitem
size_t bucket

Friends

class HashMap

Detailed Description

template<typename Key, typename Value>
class mos::HashMap< Key, Value >::iterator

Definition at line 35 of file hashmap.hpp.

Constructor & Destructor Documentation

◆ iterator()

template<typename Key, typename Value>
iterator ( HashMap * map,
size_t bucket,
chain * item )
inlineprivate

Definition at line 81 of file hashmap.hpp.

Referenced by operator++(), and operator==().

Here is the call graph for this function:

Member Function Documentation

◆ operator++()

template<typename Key, typename Value>
iterator & operator++ ( )
inline

Definition at line 40 of file hashmap.hpp.

Here is the call graph for this function:

◆ operator==()

template<typename Key, typename Value>
bool operator== ( const iterator & other) const
inline

Definition at line 61 of file hashmap.hpp.

Here is the call graph for this function:

◆ operator*()

template<typename Key, typename Value>
entry_type & operator* ( )
inline

Definition at line 66 of file hashmap.hpp.

◆ operator->()

template<typename Key, typename Value>
entry_type * operator-> ( )
inline

Definition at line 70 of file hashmap.hpp.

◆ operator bool()

template<typename Key, typename Value>
operator bool ( )
inline

Definition at line 75 of file hashmap.hpp.

◆ HashMap

template<typename Key, typename Value>
friend class HashMap
friend

Definition at line 37 of file hashmap.hpp.

Referenced by HashMap, and iterator().

Member Data Documentation

◆ map

template<typename Key, typename Value>
HashMap* map
private

Definition at line 82 of file hashmap.hpp.

Referenced by iterator(), and operator++().

◆ item

template<typename Key, typename Value>
chain* item
private

Definition at line 83 of file hashmap.hpp.

Referenced by iterator(), operator bool(), operator*(), operator++(), operator->(), and operator==().

◆ bucket

template<typename Key, typename Value>
size_t bucket
private

Definition at line 84 of file hashmap.hpp.

Referenced by iterator(), operator++(), and operator==().


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