|
AGXDynamics
2.31.1.0
|
#include <LinearProbingHashTable.h>
Inheritance diagram for agx::LinearProbingHashTable< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT >:Public Types | |
| using | bucket_type = PairT |
| enum | ClearPolicy |
| typedef Implementation::const_iterator | const_iterator |
| using | const_reference = const PairT & |
| typedef LinearProbingHashTableImplementation < agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT > | Implementation |
| typedef Implementation::iterator | iterator |
| using | key_type = agx::ref_ptr< KeyT > |
| using | reference = PairT & |
| using | size_type = size_t |
| using | value_type = DataT |
Public Member Functions | |
| LinearProbingHashTable () | |
| iterator | begin () |
| Iterator to first element in hash table. More... | |
| const_iterator | begin () const |
| Iterator to first element in hash table. More... | |
| size_t | capacity () const |
| void | clear (int=0) |
| Remove all elements, keeping full capacity. More... | |
| bool | contains (const agx::ref_ptr< KeyT > &k) const |
| Check if the hash table contains a key/value pair for the given key. More... | |
| bool | contains (const KeyT *key) const |
| size_t | count (const agx::ref_ptr< KeyT > &k) const |
| Count the number of key/value pairs matching the given key. More... | |
| bool | empty () const |
| iterator | end () |
| Iterator marking end of hash table. More... | |
| const_iterator | end () const |
| Iterator marking end of hash table. More... | |
| bool | erase (const agx::ref_ptr< KeyT > &key) |
| Erase an element from the hash table. More... | |
| iterator | erase (iterator it) |
| Erase an element from the hash table. More... | |
| bool | erase (const KeyT *key) |
| iterator | find (const agx::ref_ptr< KeyT > &key) |
| Find a key/value pair in the hash table given a key. More... | |
| const_iterator | find (const agx::ref_ptr< KeyT > &key) const |
| Find a key/value pair in the hash table given a key. More... | |
| iterator | find (const KeyT *key) |
| const_iterator | find (const KeyT *key) const |
| const DataT | get_or_return_default (const agx::ref_ptr< KeyT > &k) const |
| insert_iterator | insert (const agx::ref_ptr< KeyT > &key, const DataTvalue) |
| Insert a key/value pair into the hash table. More... | |
| insert_iterator | insert (const std::pair< agx::ref_ptr< KeyT >, DataT > &p) |
| void | insert (const_iterator begin, const_iterator end) |
| Insert all elements in the given range. More... | |
| void | insert_unique (agx::ref_ptr< KeyT > &&key, DataT &&value) |
| Insert a key/value pair into the hash table assuming that the given key does not already exist in the hash table. More... | |
| void | insert_unique (std::pair< agx::ref_ptr< KeyT >, DataT > &&p) |
| DataT & | operator[] (const agx::ref_ptr< KeyT > &key) |
| Return the value associated with the given key. More... | |
| const void * | ptr () const |
| void | reserve (size_t num_elems) |
| Make room for this many elements in the hash table. More... | |
| DataT | set_get (const agx::ref_ptr< KeyT > &key, const DataT &new_value) |
| size_t | size () const |
| void | swap (LinearProbingHashTableImplementation &other) |
| DataT * | try_get (const agx::ref_ptr< KeyT > &k) |
| Find the value associated with the given key. More... | |
| const DataT * | try_get (const agx::ref_ptr< KeyT > &k) const |
| Find the value associated with the given key. More... | |
Protected Member Functions | |
| void | erase_bucket (size_t bucket) |
| size_t | find_filled_bucket (const T2 &key) const |
Definition at line 884 of file LinearProbingHashTable.h.
|
inherited |
Definition at line 64 of file LinearProbingHashTable.h.
| typedef Implementation::const_iterator agx::LinearProbingHashTable< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT >::const_iterator |
Definition at line 889 of file LinearProbingHashTable.h.
|
inherited |
Definition at line 66 of file LinearProbingHashTable.h.
| typedef LinearProbingHashTableImplementation<agx::ref_ptr<KeyT>, DataT, HashT, AllocatorT> agx::LinearProbingHashTable< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT >::Implementation |
Definition at line 887 of file LinearProbingHashTable.h.
| typedef Implementation::iterator agx::LinearProbingHashTable< agx::ref_ptr< KeyT >, DataT, HashT, AllocatorT >::iterator |
Definition at line 888 of file LinearProbingHashTable.h.
|
inherited |
Definition at line 61 of file LinearProbingHashTable.h.
|
inherited |
Definition at line 65 of file LinearProbingHashTable.h.
|
inherited |
Definition at line 62 of file LinearProbingHashTable.h.
|
inherited |
Definition at line 63 of file LinearProbingHashTable.h.
|
inherited |
Definition at line 73 of file LinearProbingHashTable.h.
|
inline |
Definition at line 891 of file LinearProbingHashTable.h.
|
inlineinherited |
Iterator to first element in hash table.
Definition at line 360 of file LinearProbingHashTable.h.
|
inlineinherited |
Iterator to first element in hash table.
Definition at line 372 of file LinearProbingHashTable.h.
|
inlineinherited |
Definition at line 406 of file LinearProbingHashTable.h.
|
inlineinherited |
Remove all elements, keeping full capacity.
Definition at line 656 of file LinearProbingHashTable.h.
|
inlineinherited |
Check if the hash table contains a key/value pair for the given key.
| k | Key to look for. |
Definition at line 455 of file LinearProbingHashTable.h.
|
inline |
Definition at line 895 of file LinearProbingHashTable.h.
References agx::LinearProbingHashTableImplementation< KeyT, DataT, HashT, AllocatorT >::find_filled_bucket().
|
inlineinherited |
Count the number of key/value pairs matching the given key.
Will always be either 0 or 1.
| k | The key to count. |
Definition at line 466 of file LinearProbingHashTable.h.
|
inlineinherited |
Definition at line 414 of file LinearProbingHashTable.h.
|
inlineinherited |
Iterator marking end of hash table.
Definition at line 385 of file LinearProbingHashTable.h.
|
inlineinherited |
Iterator marking end of hash table.
Definition at line 392 of file LinearProbingHashTable.h.
|
inlineinherited |
Erase an element from the hash table.
Definition at line 630 of file LinearProbingHashTable.h.
|
inlineinherited |
Erase an element from the hash table.
Definition at line 645 of file LinearProbingHashTable.h.
|
inline |
|
inlineprotectedinherited |
Definition at line 754 of file LinearProbingHashTable.h.
|
inlineinherited |
Find a key/value pair in the hash table given a key.
| key | The key to look for. |
Definition at line 426 of file LinearProbingHashTable.h.
|
inlineinherited |
Find a key/value pair in the hash table given a key.
| key | The key to look for. |
Definition at line 440 of file LinearProbingHashTable.h.
|
inline |
|
inline |
|
inlineprotectedinherited |
Definition at line 737 of file LinearProbingHashTable.h.
|
inlineinherited |
Definition at line 502 of file LinearProbingHashTable.h.
|
inlineinherited |
Insert a key/value pair into the hash table.
The current value is overwritten if a key/value pair with an equal key already exists.
| key | The key to insert. |
| value | The value to associate with the given key. |
Definition at line 521 of file LinearProbingHashTable.h.
|
inlineinherited |
Definition at line 540 of file LinearProbingHashTable.h.
|
inlineinherited |
Insert all elements in the given range.
| begin | Beginning of the range. |
| end | End of the range. |
Definition at line 551 of file LinearProbingHashTable.h.
|
inlineinherited |
Insert a key/value pair into the hash table assuming that the given key does not already exist in the hash table.
It is undefined behavior to call this method with a key that does already exist in the hash table.
| key | The key to insert. |
| value | The value to associate with the key. |
Definition at line 566 of file LinearProbingHashTable.h.
|
inlineinherited |
Definition at line 576 of file LinearProbingHashTable.h.
|
inlineinherited |
Return the value associated with the given key.
A new value is default created, inserted and then returned if the given key does not yet exist in the hash table.
| key | The key to find. |
Definition at line 608 of file LinearProbingHashTable.h.
|
inlineinherited |
Definition at line 729 of file LinearProbingHashTable.h.
|
inlineinherited |
Make room for this many elements in the hash table.
Definition at line 671 of file LinearProbingHashTable.h.
|
inlineinherited |
Definition at line 582 of file LinearProbingHashTable.h.
|
inlineinherited |
Definition at line 398 of file LinearProbingHashTable.h.
|
inlineinherited |
Definition at line 343 of file LinearProbingHashTable.h.
|
inlineinherited |
Find the value associated with the given key.
Returns nullptr if no such value exists.
| k | The key to look for. |
Definition at line 476 of file LinearProbingHashTable.h.
|
inlineinherited |
Find the value associated with the given key.
Returns nullptr if no such value exists.
| k | The key to look for. |
Definition at line 491 of file LinearProbingHashTable.h.