]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/scope.hh
f1f4d8a1dc6619659161a5c57d7825c0a1ef76d1
[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   Identifier *elem (String) const;
24   Identifier *elem (SCM) const;
25
26   SCM scm_elem (String) const;
27   SCM scm_elem (SCM) const;
28
29   void set (String, Identifier *);
30   void set (String, SCM);  
31   Scope ();
32   
33   Scope (Scope const &);
34   ~Scope ();
35   friend class Scope_iter;
36 };
37 #endif /* SCOPE_HH */
38