A simple hash table implemented as multiple buckets. HashFnc is any extended hash function: HashFnc(key) = {index1, index2, ..., }. More...
#include <hpp/fcl/broadphase/hash.h>
Public Member Functions | |
SimpleHashTable (const HashFnc &h) | |
void | init (size_t size) |
@ brief 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... | |
Protected Types | |
typedef std::list< Data > | Bin |
Protected Attributes | |
std::vector< Bin > | table_ |
HashFnc | h_ |
size_t | table_size_ |
A simple hash table implemented as multiple buckets. HashFnc is any extended hash function: HashFnc(key) = {index1, index2, ..., }.
|
protected |
|
inline |
|
inline |
clear the hash table
|
inline |
@ brief Init the number of bins in the hash table
|
inline |
References fcl::SimpleHashTable< Key, Data, HashFnc >::h_.
|
inline |
Find the elements in the hash table whose key is the same as query key.
References fcl::SimpleHashTable< Key, Data, HashFnc >::h_.
|
inline |
remove the key-value pair from the table
References fcl::SimpleHashTable< Key, Data, HashFnc >::h_.
|
protected |
|
protected |
|
protected |