38 #ifndef HPP_FCL_BROADPHASE_SPARSEHASHTABLE_H 39 #define HPP_FCL_BROADPHASE_SPARSEHASHTABLE_H 44 #include <unordered_map> 51 template <
typename U,
typename V>
53 typedef std::unordered_map<U, V> Base;
60 template <
typename Key,
typename Data,
typename HashFnc,
65 typedef std::list<Data>
Bin;
66 typedef TableT<size_t, Bin>
Table;
77 void insert(Key key, Data value);
80 std::vector<Data> query(Key key)
const;
83 void remove(Key key, Data value);
Main namespace.
Definition: broadphase_bruteforce.h:44
TableT< size_t, Bin > Table
Definition: sparse_hash_table.h:66
Definition: sparse_hash_table.h:52
HashFnc h_
Definition: sparse_hash_table.h:64
Table table_
Definition: sparse_hash_table.h:68
unordered_map_hash_table()
Definition: sparse_hash_table.h:56
A hash table implemented using unordered_map.
Definition: sparse_hash_table.h:62
std::list< Data > Bin
Definition: sparse_hash_table.h:65