|
AGX Dynamics
2.35.0.1
|
#include <QuadraticProbingHashTable.h>
Public Types | |
| enum | State { INACTIVE , ACTIVE , VALID } |
Public Member Functions | |
| Bucket () | |
| agx::UInt8 | getState () const |
| bool | isActive () const |
| bool | isValid () const |
| operator std::pair< KeyT, DataT > () | |
| Bucket & | operator= (const Bucket &b) |
Public Attributes | |
| KeyT | first |
| We used to wrap key,data in a std::pair. More... | |
| DataT | second |
Definition at line 65 of file QuadraticProbingHashTable.h.
| enum agx::QuadraticProbingHashTableImplementation::Bucket::State |
| Enumerator | |
|---|---|
| INACTIVE | |
| ACTIVE | |
| VALID | |
Definition at line 68 of file QuadraticProbingHashTable.h.
|
inline |
Definition at line 88 of file QuadraticProbingHashTable.h.
|
inline |
Definition at line 113 of file QuadraticProbingHashTable.h.
|
inline |
Definition at line 104 of file QuadraticProbingHashTable.h.
References agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::Bucket::ACTIVE.
Referenced by agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::findBucket(), and agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::insert().
|
inline |
Definition at line 107 of file QuadraticProbingHashTable.h.
References agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::Bucket::VALID.
Referenced by agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::eraseBucket(), agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::findBucket(), agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::insert(), agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::purge(), and agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::rebuild().
|
inline |
Definition at line 86 of file QuadraticProbingHashTable.h.
|
inline |
| KeyT agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::Bucket::first |
We used to wrap key,data in a std::pair.
But doing so gives double padding by compiler as first the std::pair is aligned, and then the Bucket is aligned. Storing key,data,state directly in struct gives better compaction.
Definition at line 82 of file QuadraticProbingHashTable.h.
Referenced by agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::clear(), agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::eraseBucket(), agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::findBucket(), agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::insert(), agx::QuadraticProbingHashTableImplementation< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT >::Bucket::operator std::pair< agx::ref_ptr< KeyT >, DataT >(), agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::Bucket::operator=(), agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::purge(), and agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::rebuild().
| DataT agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::Bucket::second |
Definition at line 83 of file QuadraticProbingHashTable.h.
Referenced by agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::clear(), agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::eraseBucket(), agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::insert(), agx::QuadraticProbingHashTableImplementation< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT >::Bucket::operator std::pair< agx::ref_ptr< KeyT >, DataT >(), agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::Bucket::operator=(), agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::operator[](), agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::purge(), and agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::rebuild().