]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/scope.hh
de78dd335256325dbb97cc8d31d762de0b520d02
[lilypond.git] / lily / include / scope.hh
1 /*   
2   scope.hh -- declare Scope
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1998--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef SCOPE_HH
11 #define SCOPE_HH
12
13 #include "lily-proto.hh"
14 #include "lily-guile.hh"
15
16 class Scheme_hash_table;
17
18 /*
19  Junk this almost-void class. 
20  */
21 class Scope {
22   Scheme_hash_table *id_dict_;
23   Scope (Scope const &);
24 public:
25   SCM to_alist () const; 
26   bool elem_b (String ) const;
27   bool elem_b (SCM s) const;
28
29   bool try_retrieve (SCM key, SCM *val) const;
30   
31   SCM scm_elem (String) const;
32   SCM scm_elem (SCM) const;
33
34
35   void set (String, SCM);  
36   Scope (Scheme_hash_table*);
37   
38   friend class Scope_iter;
39 };
40 #endif /* SCOPE_HH */
41