]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/scope.hh
patch::: 1.3.59.uu2.jcn1
[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   void set (String, Identifier *);
26   Scope ();
27   
28   Scope (Scope const &);
29   ~Scope ();
30   friend class Scope_iter;
31 };
32 #if 0
33 class Scope_iter {
34   Hash_table_iter<Protected_scm,Identifier*> * iter_;
35 public:
36   void operator ++(int);
37   bool ok ()const;
38   Scope_iter(Scope const&);
39   String key () const;
40   Identifier* val () const;
41   SCM scm_key () const;
42 };
43
44 #endif
45 #endif /* SCOPE_HH */
46