A simple hash table implemented as multiple buckets. HashFnc is any extended hash function: HashFnc(key) = {index1, index2, ..., }.
More...
#include <coal/broadphase/detail/simple_hash_table.h>
|
| | SimpleHashTable (const HashFnc &h) |
| |
| void | init (size_t size) |
| | Init the number of bins in the hash table. More...
|
| |
| void | insert (Key key, Data value) |
| |
| std::vector< Data > | query (Key key) const |
| | Find the elements in the hash table whose key is the same as query key. More...
|
| |
| void | remove (Key key, Data value) |
| | remove the key-value pair from the table More...
|
| |
| void | clear () |
| | clear the hash table More...
|
| |
|
| typedef std::list< Data > | Bin |
| |
template<typename Key, typename Data, typename HashFnc>
class coal::detail::SimpleHashTable< Key, Data, HashFnc >
A simple hash table implemented as multiple buckets. HashFnc is any extended hash function: HashFnc(key) = {index1, index2, ..., }.
◆ Bin
template<typename Key , typename Data , typename HashFnc >
◆ SimpleHashTable()
template<typename Key , typename Data , typename HashFnc >
◆ clear()
template<typename Key , typename Data , typename HashFnc >
◆ init()
template<typename Key , typename Data , typename HashFnc >
Init the number of bins in the hash table.
◆ insert()
template<typename Key , typename Data , typename HashFnc >
◆ query()
template<typename Key , typename Data , typename HashFnc >
Find the elements in the hash table whose key is the same as query key.
◆ remove()
template<typename Key , typename Data , typename HashFnc >
remove the key-value pair from the table
◆ h_
template<typename Key , typename Data , typename HashFnc >
◆ table_
template<typename Key , typename Data , typename HashFnc >
◆ table_size_
template<typename Key , typename Data , typename HashFnc >
The documentation for this class was generated from the following files: