19 #ifndef TM_HASH_SET_HPP__
20 #define TM_HASH_SET_HPP__
92 cout <<
"\t" <<
bucket[b]->size();
94 if (num_buckets % 8 != 0)
99 #endif // TM_HASH_SET_HPP__
tm_list_set< T > ** bucket
Definition: tm_hash_set.hpp:28
int num_buckets
Definition: tm_hash_set.hpp:29
virtual void apply_to_all(void(*f)(T item))
Definition: tm_hash_set.hpp:67
tm_hash_set & operator=(const tm_hash_set &)
Definition: tm_set.hpp:20
Definition: tm_hash_set.hpp:26
#define TRANSACTION_SAFE
Definition: common.hpp:87
tm_hash_set(const tm_hash_set &)
virtual TRANSACTION_SAFE void insert(const T item)
Definition: tm_hash_set.hpp:50
virtual ~tm_hash_set()
Definition: tm_hash_set.hpp:84
virtual bool lookup(const T item)
Definition: tm_hash_set.hpp:62
void print_stats()
Definition: tm_hash_set.hpp:87
tm_hash_set(int capacity)
Definition: tm_hash_set.hpp:73
Definition: tm_list_set.hpp:25
TRANSACTION_SAFE unsigned long hash(T item)
Definition: tm_hash_set.hpp:39