AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
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

typedef LinearProbingHashSetImplementation< KeyT, HashT > Implementation
 
- Public Types inherited from agx::LinearProbingHashSetImplementation< KeyT, HashT >
using const_reference = const KeyT &
 
using reference = KeyT &
 
using size_type = size_t
 
using value_type = KeyT
 

Public Member Functions

 LinearProbingHashSet ()
 
- Public Member Functions inherited from agx::LinearProbingHashSetImplementation< KeyT, HashT >
 LinearProbingHashSetImplementation ()=default
 
 LinearProbingHashSetImplementation (const LinearProbingHashSetImplementation &other)
 
 LinearProbingHashSetImplementation (LinearProbingHashSetImplementation &&other)
 
 ~LinearProbingHashSetImplementation ()
 
iterator begin ()
 
const_iterator begin () const
 
void clear ()
 
bool contains (const KeyT &k) const
 
size_t count (const KeyT &k) const
 
template<class... Args>
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
 
iterator insert (const KeyT &key)
 
void insert (const_iterator begin, const_iterator end)
 
iterator insert (KeyT &&key)
 
void insert_unique (KeyT &&key)
 
LinearProbingHashSetImplementation & operator= (const LinearProbingHashSetImplementation &other)
 
LinearProbingHashSetImplementation & operator= (LinearProbingHashSetImplementation &&other)
 
void reserve (size_t num_elems)
 
size_t size () const
 
void swap (LinearProbingHashSetImplementation &other)
 

Additional Inherited Members

- Protected Member Functions inherited from agx::LinearProbingHashSetImplementation< KeyT, HashT >
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 620 of file LinearProbingHashSet.h.

Member Typedef Documentation

◆ Implementation

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

Definition at line 623 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 625 of file LinearProbingHashSet.h.


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