Definition in file w_hash.h.
Go to the source code of this file.
Classes | |
| class | w_hash_t< T, LOCK, K > |
| Templated hash table. Not particularly sophisticated. More... | |
| class | w_hash_i< T, LOCK, K > |
| Iterate over hash table (for debugging). More... | |
Defines | |
| #define | W_HASH_ARG(class, key, link) W_KEYED_ARG(class, key, link) |
| Idiom for creating constructor argument for w_hash_t. | |
Functions | |
| template<class T, class LOCK, class K> | |
| ostream & | operator<< (ostream &o, const w_hash_t< T, LOCK, K > &h) |
| #define W_HASH_ARG | ( | class, | |||
| key, | |||||
| link | ) | W_KEYED_ARG(class, key, link) |
Idiom for creating constructor argument for w_hash_t.
This macro produces the last two arguments of the w_hash_t constructor. Example :
class key_t; class entry_t { ... public: key_t hashkey; w_link_t hashlink; }; w_hash_t<entry_t,key_t>(16, W_HASH_ARG(entry_t,hashkey,hashlink)) hashtable;
1.4.7