2 hash-table-iter.hh -- declare Hash_table_iter
4 source file of the Flower Library
6 (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef HASH_TABLE_ITER_HH
11 #define HASH_TABLE_ITER_HH
12 #include "hash-table.hh"
14 template<class K, class V>
17 Hash_table<K,V> *dict_l_;
20 Hash_table_iter(Hash_table<K,V> const &dict)
23 dict_l_ =(Hash_table<K,V> *) & dict;
29 return i < dict_l_->fixed_p_->dict_arr_.size ();
34 while (ok () && dict_l_->fixed_p_->dict_arr_[i].free_b_)
47 return dict_l_->fixed_p_->dict_arr_[i].key_;
51 return dict_l_->fixed_p_->dict_arr_[i].value_;
55 return dict_l_->fixed_p_->dict_arr_[i].value_;
60 #endif /* HASH_TABLE_ITER_HH */