]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/scope.hh
release: 1.3.131
[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 class Scope {
18   Scheme_hash_table *id_dict_;
19   Scope (Scope const &);
20 public:
21   SCM to_alist () const; 
22   bool elem_b (String ) const;
23   bool elem_b (SCM s) const;
24
25   bool try_retrieve (SCM key, SCM *val) const;
26   
27   SCM scm_elem (String) const;
28   SCM scm_elem (SCM) const;
29
30
31   void set (String, SCM);  
32   Scope (Scheme_hash_table*);
33   
34   friend class Scope_iter;
35 };
36 #endif /* SCOPE_HH */
37