openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
hashmap::unordered_map< K, T, OPS >::const_iterator Class Reference

Const iterator. More...

#include <hashmap.hpp>

Collaboration diagram for hashmap::unordered_map< K, T, OPS >::const_iterator:

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = std::pair< K, T >
 
using difference_type = std::ptrdiff_t
 
using pointer = const value_type *
 
using reference = const value_type &
 

Public Member Functions

 const_iterator ()=default
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
const_iteratoroperator-- ()
 
const_iterator operator-- (int)
 
bool operator< (const const_iterator &other) const
 
bool operator== (const const_iterator &other) const
 
bool operator!= (const const_iterator &other) const
 
reference operator* () const
 
pointer operator-> () const
 

Protected Member Functions

 const_iterator (const unordered_map *iptr, hm_int iindex)
 

Protected Attributes

const unordered_mapptr = nullptr
 
hm_int index = 0
 

Friends

class unordered_map
 

Detailed Description

template<typename K, typename T, typename OPS>
class hashmap::unordered_map< K, T, OPS >::const_iterator

Const iterator.

Definition at line 452 of file hashmap.hpp.

Member Typedef Documentation

◆ difference_type

template<typename K , typename T , typename OPS >
using hashmap::unordered_map< K, T, OPS >::const_iterator::difference_type = std::ptrdiff_t

Definition at line 466 of file hashmap.hpp.

◆ iterator_category

template<typename K , typename T , typename OPS >
using hashmap::unordered_map< K, T, OPS >::const_iterator::iterator_category = std::forward_iterator_tag

Definition at line 464 of file hashmap.hpp.

◆ pointer

template<typename K , typename T , typename OPS >
using hashmap::unordered_map< K, T, OPS >::const_iterator::pointer = const value_type*

Definition at line 467 of file hashmap.hpp.

◆ reference

template<typename K , typename T , typename OPS >
using hashmap::unordered_map< K, T, OPS >::const_iterator::reference = const value_type&

Definition at line 468 of file hashmap.hpp.

◆ value_type

template<typename K , typename T , typename OPS >
using hashmap::unordered_map< K, T, OPS >::const_iterator::value_type = std::pair<K, T>

Definition at line 465 of file hashmap.hpp.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

template<typename K , typename T , typename OPS >
hashmap::unordered_map< K, T, OPS >::const_iterator::const_iterator ( const unordered_map iptr,
hm_int  iindex 
)
inlineprotected

Definition at line 459 of file hashmap.hpp.

◆ const_iterator() [2/2]

template<typename K , typename T , typename OPS >
hashmap::unordered_map< K, T, OPS >::const_iterator::const_iterator ( )
default

Member Function Documentation

◆ operator!=()

template<typename K , typename T , typename OPS >
bool hashmap::unordered_map< K, T, OPS >::const_iterator::operator!= ( const const_iterator other) const
inline

Definition at line 485 of file hashmap.hpp.

◆ operator*()

template<typename K , typename T , typename OPS >
reference hashmap::unordered_map< K, T, OPS >::const_iterator::operator* ( ) const
inline

Definition at line 488 of file hashmap.hpp.

◆ operator++() [1/2]

template<typename K , typename T , typename OPS >
const_iterator& hashmap::unordered_map< K, T, OPS >::const_iterator::operator++ ( )
inline

Definition at line 473 of file hashmap.hpp.

◆ operator++() [2/2]

template<typename K , typename T , typename OPS >
const_iterator hashmap::unordered_map< K, T, OPS >::const_iterator::operator++ ( int  )
inline

Definition at line 475 of file hashmap.hpp.

◆ operator--() [1/2]

template<typename K , typename T , typename OPS >
const_iterator& hashmap::unordered_map< K, T, OPS >::const_iterator::operator-- ( )
inline

Definition at line 478 of file hashmap.hpp.

◆ operator--() [2/2]

template<typename K , typename T , typename OPS >
const_iterator hashmap::unordered_map< K, T, OPS >::const_iterator::operator-- ( int  )
inline

Definition at line 480 of file hashmap.hpp.

◆ operator->()

template<typename K , typename T , typename OPS >
pointer hashmap::unordered_map< K, T, OPS >::const_iterator::operator-> ( ) const
inline

Definition at line 489 of file hashmap.hpp.

◆ operator<()

template<typename K , typename T , typename OPS >
bool hashmap::unordered_map< K, T, OPS >::const_iterator::operator< ( const const_iterator other) const
inline

Definition at line 483 of file hashmap.hpp.

◆ operator==()

template<typename K , typename T , typename OPS >
bool hashmap::unordered_map< K, T, OPS >::const_iterator::operator== ( const const_iterator other) const
inline

Definition at line 484 of file hashmap.hpp.

Friends And Related Function Documentation

◆ unordered_map

template<typename K , typename T , typename OPS >
friend class unordered_map
friend

Definition at line 453 of file hashmap.hpp.

Member Data Documentation

◆ index

template<typename K , typename T , typename OPS >
hm_int hashmap::unordered_map< K, T, OPS >::const_iterator::index = 0
protected

Definition at line 457 of file hashmap.hpp.

◆ ptr

template<typename K , typename T , typename OPS >
const unordered_map* hashmap::unordered_map< K, T, OPS >::const_iterator::ptr = nullptr
protected

Definition at line 456 of file hashmap.hpp.


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