A simple hash table implemented as multiple buckets. HashFnc is any extended hash function: HashFnc(key) = {index1, index2, ..., }. More...
#include <simple_hash_table.h>
| Public Member Functions | |
| void | clear () | 
| clear the hash table  More... | |
| 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... | |
| SimpleHashTable (const HashFnc &h) | |
| Protected Types | |
| typedef std::list< Data > | Bin | 
| Protected Attributes | |
| HashFnc | h_ | 
| std::vector< Bin > | table_ | 
| size_t | table_size_ | 
A simple hash table implemented as multiple buckets. HashFnc is any extended hash function: HashFnc(key) = {index1, index2, ..., }.
Definition at line 55 of file simple_hash_table.h.
| 
 | protected | 
Definition at line 58 of file simple_hash_table.h.
| fcl::detail::SimpleHashTable< Key, Data, HashFnc >::SimpleHashTable | ( | const HashFnc & | h | ) | 
Definition at line 53 of file simple_hash_table-inl.h.
| void fcl::detail::SimpleHashTable< Key, Data, HashFnc >::clear | 
clear the hash table
Definition at line 114 of file simple_hash_table-inl.h.
| void fcl::detail::SimpleHashTable< Key, Data, HashFnc >::init | ( | size_t | size | ) | 
Init the number of bins in the hash table.
Definition at line 61 of file simple_hash_table-inl.h.
| void fcl::detail::SimpleHashTable< Key, Data, HashFnc >::insert | ( | Key | key, | 
| Data | value | ||
| ) | 
Definition at line 74 of file simple_hash_table-inl.h.
| std::vector< Data > fcl::detail::SimpleHashTable< Key, Data, HashFnc >::query | ( | Key | key | ) | const | 
Find the elements in the hash table whose key is the same as query key.
Definition at line 84 of file simple_hash_table-inl.h.
| void fcl::detail::SimpleHashTable< Key, Data, HashFnc >::remove | ( | Key | key, | 
| Data | value | ||
| ) | 
remove the key-value pair from the table
Definition at line 101 of file simple_hash_table-inl.h.
| 
 | protected | 
Definition at line 62 of file simple_hash_table.h.
| 
 | protected | 
Definition at line 60 of file simple_hash_table.h.
| 
 | protected | 
Definition at line 64 of file simple_hash_table.h.