CppCommon  1.0.4.1
C++ Common Library
Public Types | Public Member Functions | Friends | List of all members
CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue > Class Template Reference

Hash map constant reverse iterator. More...

#include <hashmap.h>

Public Types

typedef std::pair< TKey, TValue > value_type
 
typedef value_typereference
 
typedef const value_typeconst_reference
 
typedef value_typepointer
 
typedef const value_typeconst_pointer
 
typedef ptrdiff_t difference_type
 
typedef size_t size_type
 
typedef std::bidirectional_iterator_tag iterator_category
 

Public Member Functions

 HashMapConstReverseIterator () noexcept
 
 HashMapConstReverseIterator (const TContainer *container) noexcept
 
 HashMapConstReverseIterator (const TContainer *container, size_t index) noexcept
 
 HashMapConstReverseIterator (const HashMapReverseIterator< TContainer, TKey, TValue > &it) noexcept
 
 HashMapConstReverseIterator (const HashMapConstReverseIterator &it) noexcept=default
 
 HashMapConstReverseIterator (HashMapConstReverseIterator &&it) noexcept=default
 
 ~HashMapConstReverseIterator () noexcept=default
 
HashMapConstReverseIteratoroperator= (const HashMapReverseIterator< TContainer, TKey, TValue > &it) noexcept
 
HashMapConstReverseIteratoroperator= (const HashMapConstReverseIterator &it) noexcept=default
 
HashMapConstReverseIteratoroperator= (HashMapConstReverseIterator &&it) noexcept=default
 
HashMapConstReverseIteratoroperator++ () noexcept
 
HashMapConstReverseIterator operator++ (int) noexcept
 
const_reference operator* () const noexcept
 
const_pointer operator-> () const noexcept
 
 operator bool () const noexcept
 Check if the iterator is valid. More...
 
void swap (HashMapConstReverseIterator &it) noexcept
 Swap two instances. More...
 

Friends

bool operator== (const HashMapConstReverseIterator &it1, const HashMapConstReverseIterator &it2) noexcept
 
bool operator!= (const HashMapConstReverseIterator &it1, const HashMapConstReverseIterator &it2) noexcept
 
template<class UContainer , typename UKey , typename UValue >
void swap (HashMapConstReverseIterator< UContainer, UKey, UValue > &it1, HashMapConstReverseIterator< UContainer, UKey, UValue > &it2) noexcept
 

Detailed Description

template<class TContainer, typename TKey, typename TValue>
class CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >

Hash map constant reverse iterator.

Not thread-safe.

Definition at line 390 of file hashmap.h.

Member Typedef Documentation

◆ const_pointer

template<class TContainer , typename TKey , typename TValue >
typedef const value_type* CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::const_pointer

Definition at line 400 of file hashmap.h.

◆ const_reference

template<class TContainer , typename TKey , typename TValue >
typedef const value_type& CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::const_reference

Definition at line 398 of file hashmap.h.

◆ difference_type

template<class TContainer , typename TKey , typename TValue >
typedef ptrdiff_t CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::difference_type

Definition at line 401 of file hashmap.h.

◆ iterator_category

template<class TContainer , typename TKey , typename TValue >
typedef std::bidirectional_iterator_tag CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::iterator_category

Definition at line 403 of file hashmap.h.

◆ pointer

template<class TContainer , typename TKey , typename TValue >
typedef value_type* CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::pointer

Definition at line 399 of file hashmap.h.

◆ reference

template<class TContainer , typename TKey , typename TValue >
typedef value_type& CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::reference

Definition at line 397 of file hashmap.h.

◆ size_type

template<class TContainer , typename TKey , typename TValue >
typedef size_t CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::size_type

Definition at line 402 of file hashmap.h.

◆ value_type

template<class TContainer , typename TKey , typename TValue >
typedef std::pair<TKey, TValue> CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::value_type

Definition at line 396 of file hashmap.h.

Constructor & Destructor Documentation

◆ HashMapConstReverseIterator() [1/6]

template<class TContainer , typename TKey , typename TValue >
CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::HashMapConstReverseIterator ( )
inlinenoexcept

Definition at line 405 of file hashmap.h.

◆ HashMapConstReverseIterator() [2/6]

template<class TContainer , typename TKey , typename TValue >
CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::HashMapConstReverseIterator ( const TContainer *  container)
inlineexplicitnoexcept

Definition at line 589 of file hashmap.inl.

◆ HashMapConstReverseIterator() [3/6]

template<class TContainer , typename TKey , typename TValue >
CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::HashMapConstReverseIterator ( const TContainer *  container,
size_t  index 
)
inlineexplicitnoexcept

Definition at line 407 of file hashmap.h.

◆ HashMapConstReverseIterator() [4/6]

template<class TContainer , typename TKey , typename TValue >
CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::HashMapConstReverseIterator ( const HashMapReverseIterator< TContainer, TKey, TValue > &  it)
inlinenoexcept

Definition at line 408 of file hashmap.h.

◆ HashMapConstReverseIterator() [5/6]

template<class TContainer , typename TKey , typename TValue >
CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::HashMapConstReverseIterator ( const HashMapConstReverseIterator< TContainer, TKey, TValue > &  it)
defaultnoexcept

◆ HashMapConstReverseIterator() [6/6]

template<class TContainer , typename TKey , typename TValue >
CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::HashMapConstReverseIterator ( HashMapConstReverseIterator< TContainer, TKey, TValue > &&  it)
defaultnoexcept

◆ ~HashMapConstReverseIterator()

template<class TContainer , typename TKey , typename TValue >
CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::~HashMapConstReverseIterator ( )
defaultnoexcept

Member Function Documentation

◆ operator bool()

template<class TContainer , typename TKey , typename TValue >
CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::operator bool ( ) const
inlineexplicitnoexcept

Check if the iterator is valid.

Definition at line 430 of file hashmap.h.

◆ operator*()

template<class TContainer , typename TKey , typename TValue >
HashMapConstReverseIterator< TContainer, TKey, TValue >::const_reference CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::operator*
noexcept

Definition at line 647 of file hashmap.inl.

◆ operator++() [1/2]

template<class TContainer , typename TKey , typename TValue >
HashMapConstReverseIterator< TContainer, TKey, TValue > & CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::operator++
noexcept

Definition at line 617 of file hashmap.inl.

◆ operator++() [2/2]

template<class TContainer , typename TKey , typename TValue >
HashMapConstReverseIterator< TContainer, TKey, TValue > CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::operator++ ( int  )
inlinenoexcept

Definition at line 639 of file hashmap.inl.

◆ operator->()

template<class TContainer , typename TKey , typename TValue >
HashMapConstReverseIterator< TContainer, TKey, TValue >::const_pointer CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::operator->
noexcept

Definition at line 655 of file hashmap.inl.

◆ operator=() [1/3]

template<class TContainer , typename TKey , typename TValue >
HashMapConstReverseIterator& CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::operator= ( const HashMapConstReverseIterator< TContainer, TKey, TValue > &  it)
defaultnoexcept

◆ operator=() [2/3]

template<class TContainer , typename TKey , typename TValue >
HashMapConstReverseIterator& CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::operator= ( const HashMapReverseIterator< TContainer, TKey, TValue > &  it)
inlinenoexcept

Definition at line 413 of file hashmap.h.

◆ operator=() [3/3]

template<class TContainer , typename TKey , typename TValue >
HashMapConstReverseIterator& CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::operator= ( HashMapConstReverseIterator< TContainer, TKey, TValue > &&  it)
defaultnoexcept

◆ swap()

template<class TContainer , typename TKey , typename TValue >
void CppCommon::HashMapConstReverseIterator< TContainer, TKey, TValue >::swap ( HashMapConstReverseIterator< TContainer, TKey, TValue > &  it)
noexcept

Swap two instances.

Definition at line 661 of file hashmap.inl.

Friends And Related Function Documentation

◆ operator!=

template<class TContainer , typename TKey , typename TValue >
bool operator!= ( const HashMapConstReverseIterator< TContainer, TKey, TValue > &  it1,
const HashMapConstReverseIterator< TContainer, TKey, TValue > &  it2 
)
friend

Definition at line 420 of file hashmap.h.

◆ operator==

template<class TContainer , typename TKey , typename TValue >
bool operator== ( const HashMapConstReverseIterator< TContainer, TKey, TValue > &  it1,
const HashMapConstReverseIterator< TContainer, TKey, TValue > &  it2 
)
friend

Definition at line 418 of file hashmap.h.

◆ swap

template<class TContainer , typename TKey , typename TValue >
template<class UContainer , typename UKey , typename UValue >
void swap ( HashMapConstReverseIterator< UContainer, UKey, UValue > &  it1,
HashMapConstReverseIterator< UContainer, UKey, UValue > &  it2 
)
friend

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