2 scm-hash.hh -- declare Scheme hasher.
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
17 1. ALWAYS USE THIS AS VIA A POINTER, i.e.
20 Scheme_hash_table * tab;
26 Scheme_hash_table tab;
30 2. UPON DESTRUCTION, DO
32 scm_gc_unprotect_object (tab->self_scm_);
35 class Scheme_hash_table
38 bool try_retrieve (SCM key, SCM *val);
39 bool contains (SCM key) const;
40 void set (SCM k, SCM v);
41 SCM get (SCM k) const;
44 void operator = (Scheme_hash_table const &);
45 Scheme_hash_table (Scheme_hash_table const &);
46 SCM to_alist () const;
50 void copy (Scheme_hash_table const &src);
51 DECLARE_SMOBS (Scheme_hash_table);
54 #endif /* SCM_HASH_HH */