38 #ifndef FCL_BROADPHASE_SIMPLEHASHTABLE_H 39 #define FCL_BROADPHASE_SIMPLEHASHTABLE_H 54 template<
typename Key,
typename Data,
typename HashFnc>
58 typedef std::list<Data> Bin;
60 std::vector<Bin> table_;
70 void init(
size_t size);
73 void insert(Key key, Data value);
77 std::vector<Data>
query(Key key)
const;
80 void remove(Key key, Data value);
89 #include "fcl/broadphase/detail/simple_hash_table-inl.h" Main namespace.
Definition: broadphase_bruteforce-inl.h:45
void init(size_t size)
Init the number of bins in the hash table.
Definition: simple_hash_table-inl.h:61
void clear()
clear the hash table
Definition: simple_hash_table-inl.h:114
std::vector< Data > query(Key key) const
Find the elements in the hash table whose key is the same as query key.
Definition: simple_hash_table-inl.h:84
A simple hash table implemented as multiple buckets. HashFnc is any extended hash function: HashFnc(k...
Definition: simple_hash_table.h:55