GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::HashSet< Key, Hash, KeyEqual, Allocator >::iterator Class Reference

#include <GREM/core/data/HashSet.hpp>

Public Types

using value_type = Key
using reference = const Key&
using pointer = const Key*
using difference_type = std::ptrdiff_t
using iterator_category = std::bidirectional_iterator_tag

Public Member Functions

 iterator () noexcept=default
constexpr iterator (const HashSet *set, size_type index) noexcept
constexpr reference operator* () const
constexpr pointer operator-> () const
constexpr iterator & operator++ ()
constexpr iterator operator++ (int)
constexpr iterator & operator-- ()
constexpr iterator operator-- (int)
constexpr bool operator== (const iterator &other) const noexcept
constexpr size_type getIndex () const noexcept

Member Typedef Documentation

◆ value_type

template<typename Key, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Key>>
using grem::HashSet< Key, Hash, KeyEqual, Allocator >::iterator::value_type = Key

◆ reference

template<typename Key, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Key>>
using grem::HashSet< Key, Hash, KeyEqual, Allocator >::iterator::reference = const Key&

◆ pointer

template<typename Key, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Key>>
using grem::HashSet< Key, Hash, KeyEqual, Allocator >::iterator::pointer = const Key*

◆ difference_type

template<typename Key, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Key>>
using grem::HashSet< Key, Hash, KeyEqual, Allocator >::iterator::difference_type = std::ptrdiff_t

◆ iterator_category

template<typename Key, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Key>>
using grem::HashSet< Key, Hash, KeyEqual, Allocator >::iterator::iterator_category = std::bidirectional_iterator_tag

Constructor & Destructor Documentation

◆ iterator() [1/2]

template<typename Key, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Key>>
grem::HashSet< Key, Hash, KeyEqual, Allocator >::iterator::iterator ( )
defaultnoexcept

◆ iterator() [2/2]

template<typename Key, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Key>>
grem::HashSet< Key, Hash, KeyEqual, Allocator >::iterator::iterator ( const HashSet * set,
size_type index )
inlineconstexprnoexcept

Member Function Documentation

◆ operator*()

template<typename Key, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Key>>
reference grem::HashSet< Key, Hash, KeyEqual, Allocator >::iterator::operator* ( ) const
inlinenodiscardconstexpr

◆ operator->()

template<typename Key, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Key>>
pointer grem::HashSet< Key, Hash, KeyEqual, Allocator >::iterator::operator-> ( ) const
inlinenodiscardconstexpr

◆ operator++() [1/2]

template<typename Key, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Key>>
iterator & grem::HashSet< Key, Hash, KeyEqual, Allocator >::iterator::operator++ ( )
inlineconstexpr

◆ operator++() [2/2]

template<typename Key, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Key>>
iterator grem::HashSet< Key, Hash, KeyEqual, Allocator >::iterator::operator++ ( int )
inlineconstexpr

◆ operator--() [1/2]

template<typename Key, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Key>>
iterator & grem::HashSet< Key, Hash, KeyEqual, Allocator >::iterator::operator-- ( )
inlineconstexpr

◆ operator--() [2/2]

template<typename Key, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Key>>
iterator grem::HashSet< Key, Hash, KeyEqual, Allocator >::iterator::operator-- ( int )
inlineconstexpr

◆ operator==()

template<typename Key, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Key>>
bool grem::HashSet< Key, Hash, KeyEqual, Allocator >::iterator::operator== ( const iterator & other) const
inlinenodiscardconstexprnoexcept

◆ getIndex()

template<typename Key, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key>, typename Allocator = std::allocator<Key>>
size_type grem::HashSet< Key, Hash, KeyEqual, Allocator >::iterator::getIndex ( ) const
inlinenodiscardconstexprnoexcept

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