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

#include <hashmap.hpp>

+ Collaboration diagram for HashMap< Key, Value, TAllocator >::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, typename TAllocator = mos::default_allocator>
class mos::HashMap< Key, Value, TAllocator >::const_iterator

Definition at line 86 of file hashmap.hpp.

Constructor & Destructor Documentation

◆ const_iterator()

template<typename Key, typename Value, typename TAllocator = mos::default_allocator>
const_iterator ( const HashMap * map,
size_t bucket,
const chain * item )
inlineprivate

Definition at line 133 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, typename TAllocator = mos::default_allocator>
const_iterator & operator++ ( )
inline

Definition at line 91 of file hashmap.hpp.

+ Here is the call graph for this function:

◆ operator==()

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

Definition at line 112 of file hashmap.hpp.

+ Here is the call graph for this function:

◆ operator*()

template<typename Key, typename Value, typename TAllocator = mos::default_allocator>
const entry_type & operator* ( ) const
inline

Definition at line 117 of file hashmap.hpp.

◆ operator->()

template<typename Key, typename Value, typename TAllocator = mos::default_allocator>
const entry_type * operator-> ( ) const
inline

Definition at line 122 of file hashmap.hpp.

◆ operator bool()

template<typename Key, typename Value, typename TAllocator = mos::default_allocator>
operator bool ( ) const
inline

Definition at line 127 of file hashmap.hpp.

Friends And Related Symbol Documentation

◆ HashMap

template<typename Key, typename Value, typename TAllocator = mos::default_allocator>
friend class HashMap
friend

Definition at line 88 of file hashmap.hpp.

Referenced by const_iterator(), and HashMap.

Member Data Documentation

◆ map

template<typename Key, typename Value, typename TAllocator = mos::default_allocator>
const HashMap* map
private

Definition at line 134 of file hashmap.hpp.

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

◆ item

template<typename Key, typename Value, typename TAllocator = mos::default_allocator>
const chain* item
private

◆ bucket

template<typename Key, typename Value, typename TAllocator = mos::default_allocator>
size_t bucket
private

Definition at line 136 of file hashmap.hpp.

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


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