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

Hash map 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

 HashMapReverseIterator () noexcept
 
 HashMapReverseIterator (TContainer *container) noexcept
 
 HashMapReverseIterator (TContainer *container, size_t index) noexcept
 
 HashMapReverseIterator (const HashMapReverseIterator &it) noexcept=default
 
 HashMapReverseIterator (HashMapReverseIterator &&it) noexcept=default
 
 ~HashMapReverseIterator () noexcept=default
 
HashMapReverseIteratoroperator= (const HashMapReverseIterator &it) noexcept=default
 
HashMapReverseIteratoroperator= (HashMapReverseIterator &&it) noexcept=default
 
HashMapReverseIteratoroperator++ () noexcept
 
HashMapReverseIterator operator++ (int) noexcept
 
reference operator* () noexcept
 
pointer operator-> () noexcept
 
 operator bool () const noexcept
 Check if the iterator is valid. More...
 
void swap (HashMapReverseIterator &it) noexcept
 Swap two instances. More...
 

Friends

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

Detailed Description

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

Hash map reverse iterator.

Not thread-safe.

Definition at line 335 of file hashmap.h.

Member Typedef Documentation

◆ const_pointer

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

Definition at line 346 of file hashmap.h.

◆ const_reference

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

Definition at line 344 of file hashmap.h.

◆ difference_type

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

Definition at line 347 of file hashmap.h.

◆ iterator_category

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

Definition at line 349 of file hashmap.h.

◆ pointer

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

Definition at line 345 of file hashmap.h.

◆ reference

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

Definition at line 343 of file hashmap.h.

◆ size_type

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

Definition at line 348 of file hashmap.h.

◆ value_type

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

Definition at line 342 of file hashmap.h.

Constructor & Destructor Documentation

◆ HashMapReverseIterator() [1/5]

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

Definition at line 351 of file hashmap.h.

◆ HashMapReverseIterator() [2/5]

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

Definition at line 503 of file hashmap.inl.

◆ HashMapReverseIterator() [3/5]

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

Definition at line 353 of file hashmap.h.

◆ HashMapReverseIterator() [4/5]

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

◆ HashMapReverseIterator() [5/5]

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

◆ ~HashMapReverseIterator()

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

Member Function Documentation

◆ operator bool()

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

Check if the iterator is valid.

Definition at line 373 of file hashmap.h.

◆ operator*()

template<class TContainer , typename TKey , typename TValue >
HashMapReverseIterator< TContainer, TKey, TValue >::reference CppCommon::HashMapReverseIterator< TContainer, TKey, TValue >::operator*
noexcept

Definition at line 561 of file hashmap.inl.

◆ operator++() [1/2]

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

Definition at line 531 of file hashmap.inl.

◆ operator++() [2/2]

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

Definition at line 553 of file hashmap.inl.

◆ operator->()

template<class TContainer , typename TKey , typename TValue >
HashMapReverseIterator< TContainer, TKey, TValue >::pointer CppCommon::HashMapReverseIterator< TContainer, TKey, TValue >::operator->
noexcept

Definition at line 569 of file hashmap.inl.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ swap()

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

Swap two instances.

Definition at line 575 of file hashmap.inl.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 363 of file hashmap.h.

◆ operator==

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

Definition at line 361 of file hashmap.h.

◆ swap

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

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