AGXDynamics  2.31.1.0
agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::insert_iterator Class Reference

#include <LinearProbingHashTable.h>

+ Inheritance diagram for agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::insert_iterator:

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

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

Public Attributes

size_t _bucket
 
MyType * _map
 

Detailed Description

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

Definition at line 278 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 >::iterator::bucket_type = std::pair<KeyT, ValueT>
inherited

Definition at line 88 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 >::iterator::difference_type = size_t
inherited

Definition at line 86 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 >::iterator::distance_type = size_t
inherited

Definition at line 87 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 >::iterator::iterator_category = std::forward_iterator_tag
inherited

Definition at line 85 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 >::iterator::pointer = bucket_type*
inherited

Definition at line 89 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 >::iterator::reference = bucket_type&
inherited

Definition at line 90 of file LinearProbingHashTable.h.

Constructor & Destructor Documentation

◆ insert_iterator() [1/2]

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

Definition at line 281 of file LinearProbingHashTable.h.

◆ insert_iterator() [2/2]

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

Definition at line 285 of file LinearProbingHashTable.h.

Member Function Documentation

◆ didOverwrite()

template<typename KeyT, typename ValueT, typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
bool agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::insert_iterator::didOverwrite ( ) const
inline
Returns
True if the insert operation did overwrite an existing entry.

Definition at line 293 of file LinearProbingHashTable.h.

References agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::LinearProbingHashTableImplementation().

◆ operator!=()

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

◆ operator*()

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

Definition at line 128 of file LinearProbingHashTable.h.

◆ operator++() [1/2]

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

Definition at line 98 of file LinearProbingHashTable.h.

◆ operator++() [2/2]

template<typename KeyT, typename ValueT, typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
iterator agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::iterator::operator++ ( int  )
inlineinherited

Definition at line 104 of file LinearProbingHashTable.h.

◆ operator--() [1/2]

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

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

Definition at line 113 of file LinearProbingHashTable.h.

◆ operator--() [2/2]

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

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

Definition at line 121 of file LinearProbingHashTable.h.

◆ operator->()

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

Definition at line 133 of file LinearProbingHashTable.h.

◆ operator==()

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

Member Data Documentation

◆ _bucket

template<typename KeyT, typename ValueT, typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
size_t agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::iterator::_bucket
inherited

◆ _map

template<typename KeyT, typename ValueT, typename HashT = agx::HashFn<KeyT>, typename AllocatorT = ByteAllocator>
MyType* agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::iterator::_map
inherited

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