A hash table implemented using unordered_map. More...
#include <hpp/fcl/broadphase/hash.h>
Public Member Functions | |
SparseHashTable (const HashFnc &h) | |
void | init (size_t) |
Init the hash table. The bucket size is dynamically decided. More... | |
void | insert (Key key, Data value) |
insert one key-value pair into the hash table More... | |
std::vector< Data > | query (Key key) const |
find the elements whose key is the same as the query More... | |
void | remove (Key key, Data value) |
remove one key-value pair from the hash table More... | |
void | clear () |
clear the hash table More... | |
Protected Types | |
typedef std::list< Data > | Bin |
typedef TableT< size_t, Bin > | Table |
Protected Attributes | |
HashFnc | h_ |
Table | table_ |
A hash table implemented using unordered_map.
|
protected |
|
protected |
|
inline |
|
inline |
clear the hash table
|
inline |
Init the hash table. The bucket size is dynamically decided.
|
inline |
insert one key-value pair into the hash table
References fcl::SparseHashTable< Key, Data, HashFnc, TableT >::h_.
|
inline |
find the elements whose key is the same as the query
References fcl::SparseHashTable< Key, Data, HashFnc, TableT >::h_.
|
inline |
remove one key-value pair from the hash table
References fcl::SparseHashTable< Key, Data, HashFnc, TableT >::h_.
|
protected |
|
protected |