AGXDynamics  2.31.1.0
agx::LinearProbingHashSet< KeyT, HashT > Class Template Reference

Inheritance with partial specialization due to bug with ref_ptr containers. More...

#include <LinearProbingHashSet.h>

+ Inheritance diagram for agx::LinearProbingHashSet< KeyT, HashT >:

Public Types

using const_reference = const KeyT &
 
typedef LinearProbingHashSetImplementation< KeyT, HashT > Implementation
 
using reference = KeyT &
 
using size_type = size_t
 
using value_type = KeyT
 

Public Member Functions

 LinearProbingHashSet ()
 
iterator begin ()
 
const_iterator begin () const
 
void clear ()
 
bool contains (const KeyT &k) const
 
size_t count (const KeyT &k) const
 
template<class... Args>
insert_iterator emplace (Args &&... args)
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
bool erase (const KeyT &key)
 
iterator erase (iterator it)
 
iterator find (const KeyT &key)
 
const_iterator find (const KeyT &key) const
 
insert_iterator insert (const KeyT &key)
 
insert_iterator insert (KeyT &&key)
 
void insert (const_iterator begin, const_iterator end)
 
void insert_unique (KeyT &&key)
 
void reserve (size_t num_elems)
 
size_t size () const
 
void swap (LinearProbingHashSetImplementation &other)
 

Protected Member Functions

void erase_bucket (size_t bucket)
 
template<typename T2 >
size_t find_filled_bucket (const T2 &key) const
 

Detailed Description

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

Inheritance with partial specialization due to bug with ref_ptr containers.

Partial specialization only works on classes, not methods which would have been a cleaner solution.

See full comment in HashSet.h

Definition at line 639 of file LinearProbingHashSet.h.

Member Typedef Documentation

◆ const_reference

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
using agx::LinearProbingHashSetImplementation< KeyT, HashT >::const_reference = const KeyT&
inherited

Definition at line 58 of file LinearProbingHashSet.h.

◆ Implementation

template<typename KeyT , typename HashT = agx::HashFn<KeyT>>
typedef LinearProbingHashSetImplementation<KeyT, HashT> agx::LinearProbingHashSet< KeyT, HashT >::Implementation

Definition at line 642 of file LinearProbingHashSet.h.

◆ reference

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

Definition at line 57 of file LinearProbingHashSet.h.

◆ size_type

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

Definition at line 55 of file LinearProbingHashSet.h.

◆ value_type

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

Definition at line 56 of file LinearProbingHashSet.h.

Constructor & Destructor Documentation

◆ LinearProbingHashSet()

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

Definition at line 644 of file LinearProbingHashSet.h.

Member Function Documentation

◆ begin() [1/2]

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

◆ begin() [2/2]

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
const_iterator agx::LinearProbingHashSetImplementation< KeyT, HashT >::begin ( ) const
inlineinherited

Definition at line 288 of file LinearProbingHashSet.h.

◆ clear()

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
void agx::LinearProbingHashSetImplementation< KeyT, HashT >::clear ( )
inlineinherited

◆ contains()

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
bool agx::LinearProbingHashSetImplementation< KeyT, HashT >::contains ( const KeyT &  k) const
inlineinherited

◆ count()

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
size_t agx::LinearProbingHashSetImplementation< KeyT, HashT >::count ( const KeyT &  k) const
inlineinherited

Definition at line 338 of file LinearProbingHashSet.h.

◆ emplace()

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
template<class... Args>
insert_iterator agx::LinearProbingHashSetImplementation< KeyT, HashT >::emplace ( Args &&...  args)
inlineinherited

Definition at line 388 of file LinearProbingHashSet.h.

◆ empty()

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
bool agx::LinearProbingHashSetImplementation< KeyT, HashT >::empty ( ) const
inlineinherited

◆ end() [1/2]

◆ end() [2/2]

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
const_iterator agx::LinearProbingHashSetImplementation< KeyT, HashT >::end ( ) const
inlineinherited

Definition at line 300 of file LinearProbingHashSet.h.

◆ erase() [1/2]

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
bool agx::LinearProbingHashSetImplementation< KeyT, HashT >::erase ( const KeyT &  key)
inlineinherited

Definition at line 415 of file LinearProbingHashSet.h.

◆ erase() [2/2]

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
iterator agx::LinearProbingHashSetImplementation< KeyT, HashT >::erase ( iterator  it)
inlineinherited

Definition at line 428 of file LinearProbingHashSet.h.

◆ erase_bucket()

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
void agx::LinearProbingHashSetImplementation< KeyT, HashT >::erase_bucket ( size_t  bucket)
inlineprotectedinherited

◆ find() [1/2]

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
iterator agx::LinearProbingHashSetImplementation< KeyT, HashT >::find ( const KeyT &  key)
inlineinherited

Definition at line 315 of file LinearProbingHashSet.h.

◆ find() [2/2]

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
const_iterator agx::LinearProbingHashSetImplementation< KeyT, HashT >::find ( const KeyT &  key) const
inlineinherited

Definition at line 324 of file LinearProbingHashSet.h.

◆ find_filled_bucket()

◆ insert() [1/3]

◆ insert() [2/3]

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
insert_iterator agx::LinearProbingHashSetImplementation< KeyT, HashT >::insert ( KeyT &&  key)
inlineinherited

Definition at line 370 of file LinearProbingHashSet.h.

◆ insert() [3/3]

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
void agx::LinearProbingHashSetImplementation< KeyT, HashT >::insert ( const_iterator  begin,
const_iterator  end 
)
inlineinherited

Definition at line 393 of file LinearProbingHashSet.h.

◆ insert_unique()

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
void agx::LinearProbingHashSetImplementation< KeyT, HashT >::insert_unique ( KeyT &&  key)
inlineinherited

Definition at line 401 of file LinearProbingHashSet.h.

◆ reserve()

◆ size()

◆ swap()

template<typename KeyT, typename HashT = agx::HashFn<KeyT>>
void agx::LinearProbingHashSetImplementation< KeyT, HashT >::swap ( LinearProbingHashSetImplementation< KeyT, HashT > &  other)
inlineinherited

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