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

#include <hashmap.hpp>

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

Definition at line 34 of file hashmap.hpp.

Constructor & Destructor Documentation

◆ iterator()

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

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

Definition at line 39 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 iterator & other) const
inline

Definition at line 60 of file hashmap.hpp.

+ Here is the call graph for this function:

◆ operator*()

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

Definition at line 65 of file hashmap.hpp.

◆ operator->()

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

Definition at line 69 of file hashmap.hpp.

◆ operator bool()

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

Definition at line 74 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 36 of file hashmap.hpp.

Referenced by HashMap, and iterator().

Member Data Documentation

◆ map

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

Definition at line 81 of file hashmap.hpp.

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

◆ item

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

Definition at line 82 of file hashmap.hpp.

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

◆ bucket

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

Definition at line 83 of file hashmap.hpp.

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


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