AGXDynamics  2.31.1.0
agx::LinearProbingHashSetImplementation< KeyT, HashT >::insert_iterator Class Reference

#include <LinearProbingHashSet.h>

+ Inheritance diagram for agx::LinearProbingHashSetImplementation< KeyT, HashT >::insert_iterator:

Public Types

using difference_type = size_t
 
using distance_type = size_t
 
using iterator_category = std::forward_iterator_tag
 
using pointer = value_type *
 
using reference = value_type &
 
using value_type = KeyT
 

Public Member Functions

 insert_iterator ()
 
 insert_iterator (MyType *hash_set, size_t bucket, bool overwrite)
 
bool didOverwrite () const
 
bool operator!= (const iterator &rhs)
 
reference operator* () const
 
iterator & operator++ ()
 
iterator operator++ (int)
 
pointer operator-> () const
 
bool operator== (const iterator &rhs)
 

Public Attributes

size_t _bucket
 
MyType * _set
 

Detailed Description

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
class agx::LinearProbingHashSetImplementation< KeyT, HashT >::insert_iterator

Definition at line 201 of file LinearProbingHashSet.h.

Member Typedef Documentation

◆ difference_type

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
using agx::LinearProbingHashSetImplementation< KeyT, HashT >::iterator::difference_type = size_t
inherited

Definition at line 64 of file LinearProbingHashSet.h.

◆ distance_type

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
using agx::LinearProbingHashSetImplementation< KeyT, HashT >::iterator::distance_type = size_t
inherited

Definition at line 65 of file LinearProbingHashSet.h.

◆ iterator_category

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
using agx::LinearProbingHashSetImplementation< KeyT, HashT >::iterator::iterator_category = std::forward_iterator_tag
inherited

Definition at line 63 of file LinearProbingHashSet.h.

◆ pointer

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
using agx::LinearProbingHashSetImplementation< KeyT, HashT >::iterator::pointer = value_type*
inherited

Definition at line 67 of file LinearProbingHashSet.h.

◆ reference

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
using agx::LinearProbingHashSetImplementation< KeyT, HashT >::iterator::reference = value_type&
inherited

Definition at line 68 of file LinearProbingHashSet.h.

◆ value_type

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
using agx::LinearProbingHashSetImplementation< KeyT, HashT >::iterator::value_type = KeyT
inherited

Definition at line 66 of file LinearProbingHashSet.h.

Constructor & Destructor Documentation

◆ insert_iterator() [1/2]

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
agx::LinearProbingHashSetImplementation< KeyT, HashT >::insert_iterator::insert_iterator ( )
inline

Definition at line 204 of file LinearProbingHashSet.h.

◆ insert_iterator() [2/2]

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
agx::LinearProbingHashSetImplementation< KeyT, HashT >::insert_iterator::insert_iterator ( MyType *  hash_set,
size_t  bucket,
bool  overwrite 
)
inline

Definition at line 208 of file LinearProbingHashSet.h.

Member Function Documentation

◆ didOverwrite()

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

Definition at line 217 of file LinearProbingHashSet.h.

References agx::LinearProbingHashSetImplementation< KeyT, HashT >::LinearProbingHashSetImplementation().

◆ operator!=()

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

◆ operator*()

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
reference agx::LinearProbingHashSetImplementation< KeyT, HashT >::iterator::operator* ( ) const
inlineinherited

Definition at line 91 of file LinearProbingHashSet.h.

◆ operator++() [1/2]

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
iterator& agx::LinearProbingHashSetImplementation< KeyT, HashT >::iterator::operator++ ( )
inlineinherited

Definition at line 78 of file LinearProbingHashSet.h.

◆ operator++() [2/2]

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
iterator agx::LinearProbingHashSetImplementation< KeyT, HashT >::iterator::operator++ ( int  )
inlineinherited

Definition at line 84 of file LinearProbingHashSet.h.

◆ operator->()

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
pointer agx::LinearProbingHashSetImplementation< KeyT, HashT >::iterator::operator-> ( ) const
inlineinherited

Definition at line 96 of file LinearProbingHashSet.h.

◆ operator==()

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

Member Data Documentation

◆ _bucket

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
size_t agx::LinearProbingHashSetImplementation< KeyT, HashT >::iterator::_bucket
inherited

◆ _set

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
MyType* agx::LinearProbingHashSetImplementation< KeyT, HashT >::iterator::_set
inherited

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