|
AGX Dynamics
2.35.0.1
|
#include <QuadraticProbingHashTable.h>
Inheritance diagram for agx::QuadraticProbingHashTable< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT >:Public Types | |
| typedef Implementation::const_iterator | const_iterator |
| typedef QuadraticProbingHashTableImplementation< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT > | Implementation |
| typedef Implementation::iterator | iterator |
Public Types inherited from agx::QuadraticProbingHashTableImplementation< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT > | |
| typedef template_iterator< const QuadraticProbingHashTableImplementation< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT > > | const_iterator |
| typedef HashT | hash_fn_type |
| typedef template_iterator< QuadraticProbingHashTableImplementation< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT > > | iterator |
| Iterators. More... | |
| typedef agx::ref_ptr< KeyT > | key_type |
| typedef DataT | value_type |
Public Types inherited from agx::Container | |
| enum | ClearPolicy { SHRINK_BUFFER , SHRINK_BUFFER_AVERAGED , MAINTAIN_BUFFER } |
| agxData::Values from this enumeration is passed to the subclasses' 'clear' method in order to control what should become of the container's memory. More... | |
Public Member Functions | |
| QuadraticProbingHashTable (const AllocatorT &allocator=AllocatorT()) | |
| bool | contains (const KeyT *key) const |
| bool | erase (const KeyT *key) |
| iterator | find (const KeyT *key) |
| const_iterator | find (const KeyT *key) const |
Public Member Functions inherited from agx::QuadraticProbingHashTableImplementation< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT > | |
| QuadraticProbingHashTableImplementation (const AllocatorT &allocator=AllocatorT()) | |
| Constructor. More... | |
| QuadraticProbingHashTableImplementation (const QuadraticProbingHashTableImplementation< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT > &other) | |
| Copy constructor. More... | |
| ~QuadraticProbingHashTableImplementation () | |
| Destructor. More... | |
| AllocatorT & | allocator () |
| const AllocatorT & | allocator () const |
| iterator | begin () |
| Iterator to first element in hash table. More... | |
| const_iterator | begin () const |
| void | clear (ClearPolicy policy=SHRINK_BUFFER_AVERAGED) |
| Remove all elements. More... | |
| bool | contains (const agx::ref_ptr< KeyT > &key) const |
| Boolean query to test existence of an element. More... | |
| iterator | end () |
| Iterator marking end of hash table. More... | |
| const_iterator | end () const |
| bool | erase (const agx::ref_ptr< KeyT > &key) |
| Erase an element from the hash table. More... | |
| iterator | erase (const iterator &it) |
| Erase an element using an iterator. More... | |
| iterator | find (const agx::ref_ptr< KeyT > &key) |
| Find an element. More... | |
| const_iterator | find (const agx::ref_ptr< KeyT > &key) const |
| const Bucket * | getBucketBuffer () const |
| size_t | getMaxProbeLength () const |
| size_t | getNumBuckets () const |
| DataT & | getOrCreate (const agx::ref_ptr< KeyT > &key) |
| Returns value given key. More... | |
| insert_iterator | insert (const agx::ref_ptr< KeyT > &key, const DataT &data) |
| Insert an element, overwriting if key already exists. More... | |
| QuadraticProbingHashTableImplementation< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT > & | operator= (const QuadraticProbingHashTableImplementation< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT > &other) |
| Assignment operator. More... | |
| DataT & | operator[] (const agx::ref_ptr< KeyT > &key) |
| Index operator for accessing elements in the hash, inserting it if not found. More... | |
| const DataT & | operator[] (const agx::ref_ptr< KeyT > &key) const |
| void | purge (T purger) |
| Purge the hash table. More... | |
| void | reserve (size_t size) |
| Reserve capacity in the hash table. More... | |
Public Member Functions inherited from agx::Container | |
| size_t | capacity () const |
| Returns the size of the memory are used by the container to store its elements. More... | |
| bool | empty () const |
| void * | ptr () |
| const void * | ptr () const |
| size_t | size () const |
Additional Inherited Members | |
Protected Member Functions inherited from agx::QuadraticProbingHashTableImplementation< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT > | |
| Bucket * | buckets () const |
| bool | eraseBucket (size_t index) |
| size_t | findBucket (const T2 &key) const |
| size_t & | numBuckets () |
| size_t | numBuckets () const |
| size_t & | numFilled () |
| size_t | numFilled () const |
| void | rebuild (size_t size) |
| Rebuild, and optionally resize hash table. More... | |
Protected Member Functions inherited from agx::Container | |
| Container () | |
| Container (const Container &other) | |
| Container (Container &&other) | |
| ~Container () | |
Protected Attributes inherited from agx::Container | |
| void * | m_buffer |
| size_t | m_capacity |
| size_t | m_size |
Definition at line 709 of file QuadraticProbingHashTable.h.
| typedef Implementation::const_iterator agx::QuadraticProbingHashTable< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT >::const_iterator |
Definition at line 714 of file QuadraticProbingHashTable.h.
| typedef QuadraticProbingHashTableImplementation<agx::ref_ptr<KeyT>, DataT, HashT, AllocatorT> agx::QuadraticProbingHashTable< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT >::Implementation |
Definition at line 712 of file QuadraticProbingHashTable.h.
| typedef Implementation::iterator agx::QuadraticProbingHashTable< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT >::iterator |
Definition at line 713 of file QuadraticProbingHashTable.h.
|
inline |
Definition at line 716 of file QuadraticProbingHashTable.h.
|
inline |
|
inline |
|
inline |
Definition at line 726 of file QuadraticProbingHashTable.h.
References agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashFn< KeyT >, ByteAllocator >::findBucket().
|
inline |
Definition at line 731 of file QuadraticProbingHashTable.h.
References agx::QuadraticProbingHashTableImplementation< KeyT, DataT, HashFn< KeyT >, ByteAllocator >::findBucket().