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