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

#include <hashmap.hpp>

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

Public Member Functions

const_iteratoroperator++ ()
bool operator== (const const_iterator &other) const
const entry_typeoperator* () const
const entry_typeoperator-> () const
 operator bool () const

Private Member Functions

 const_iterator (const HashMap *map, size_t bucket, const chain *item)

Private Attributes

const HashMapmap
const chainitem
size_t bucket

Friends

class HashMap

Detailed Description

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

Definition at line 87 of file hashmap.hpp.

Constructor & Destructor Documentation

◆ const_iterator()

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

Definition at line 134 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>
const_iterator & operator++ ( )
inline

Definition at line 92 of file hashmap.hpp.

Here is the call graph for this function:

◆ operator==()

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

Definition at line 113 of file hashmap.hpp.

Here is the call graph for this function:

◆ operator*()

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

Definition at line 118 of file hashmap.hpp.

◆ operator->()

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

Definition at line 123 of file hashmap.hpp.

◆ operator bool()

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

Definition at line 128 of file hashmap.hpp.

◆ HashMap

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

Definition at line 89 of file hashmap.hpp.

Referenced by const_iterator(), and HashMap.

Member Data Documentation

◆ map

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

Definition at line 135 of file hashmap.hpp.

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

◆ item

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

◆ bucket

template<typename Key, typename Value>
size_t bucket
private

Definition at line 137 of file hashmap.hpp.

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


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