AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator Class Reference

#include <LinearProbingHashTable.h>

Public Types

using bucket_type = std::pair< KeyT, ValueT >
 
using difference_type = size_t
 
using distance_type = size_t
 
using iterator_category = std::forward_iterator_tag
 
using pointer = bucket_type *
 
using reference = bucket_type &
 

Public Member Functions

 const_iterator ()
 
 const_iterator (const MyType *hash_map, size_t bucket)
 
 const_iterator (iterator proto)
 
bool operator!= (const const_iterator &rhs) const
 
reference operator* () const
 
const_iterator & operator++ ()
 
const_iterator operator++ (int)
 
const_iterator operator-- ()
 Does not do any bounds checking, so only call this if there really is a previous element.
 
const_iterator operator-- (int)
 Does not do any bounds checking, so only call this if there really is a previous element.
 
pointer operator-> () const
 
bool operator== (const const_iterator &rhs) const
 

Public Attributes

size_t _bucket
 
const MyType * _map
 

Detailed Description

template<typename KeyT, typename ValueT, typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
class agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator

Definition at line 182 of file LinearProbingHashTable.h.

Member Typedef Documentation

◆ bucket_type

template<typename KeyT , typename ValueT , typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
using agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator::bucket_type = std::pair<KeyT, ValueT>

Definition at line 188 of file LinearProbingHashTable.h.

◆ difference_type

template<typename KeyT , typename ValueT , typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
using agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator::difference_type = size_t

Definition at line 186 of file LinearProbingHashTable.h.

◆ distance_type

template<typename KeyT , typename ValueT , typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
using agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator::distance_type = size_t

Definition at line 187 of file LinearProbingHashTable.h.

◆ iterator_category

template<typename KeyT , typename ValueT , typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
using agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator::iterator_category = std::forward_iterator_tag

Definition at line 185 of file LinearProbingHashTable.h.

◆ pointer

template<typename KeyT , typename ValueT , typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
using agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator::pointer = bucket_type*

Definition at line 189 of file LinearProbingHashTable.h.

◆ reference

template<typename KeyT , typename ValueT , typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
using agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator::reference = bucket_type&

Definition at line 190 of file LinearProbingHashTable.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/3]

template<typename KeyT , typename ValueT , typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator::const_iterator ( )
inline

◆ const_iterator() [2/3]

template<typename KeyT , typename ValueT , typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator::const_iterator ( iterator  proto)
inline

Definition at line 194 of file LinearProbingHashTable.h.

◆ const_iterator() [3/3]

template<typename KeyT , typename ValueT , typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator::const_iterator ( const MyType *  hash_map,
size_t  bucket 
)
inline

Definition at line 198 of file LinearProbingHashTable.h.

Member Function Documentation

◆ operator!=()

template<typename KeyT , typename ValueT , typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
bool agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator::operator!= ( const const_iterator &  rhs) const
inline

◆ operator*()

template<typename KeyT , typename ValueT , typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
reference agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator::operator* ( ) const
inline

◆ operator++() [1/2]

template<typename KeyT , typename ValueT , typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
const_iterator & agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator::operator++ ( )
inline

Definition at line 202 of file LinearProbingHashTable.h.

◆ operator++() [2/2]

◆ operator--() [1/2]

template<typename KeyT , typename ValueT , typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
const_iterator agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator::operator-- ( )
inline

Does not do any bounds checking, so only call this if there really is a previous element.

Definition at line 217 of file LinearProbingHashTable.h.

◆ operator--() [2/2]

template<typename KeyT , typename ValueT , typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
const_iterator agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator::operator-- ( int  )
inline

◆ operator->()

template<typename KeyT , typename ValueT , typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
pointer agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator::operator-> ( ) const
inline

◆ operator==()

template<typename KeyT , typename ValueT , typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
bool agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::const_iterator::operator== ( const const_iterator &  rhs) const
inline

Member Data Documentation

◆ _bucket

◆ _map


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