]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/scope.hh
release: 1.1.53
[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--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef SCOPE_HH
11 #define SCOPE_HH
12
13 #include "dictionary.hh"
14 #include "lily-proto.hh"
15 #include "lily-guile.hh"
16 #include "dictionary-iter.hh"
17 #include "protected-scm.hh"
18
19 class Scope : private Hash_table<Protected_scm,Identifier*> {
20 public:
21   void print () const;
22   bool elem_b (String ) const;
23   bool elem_b (SCM s) const;
24   Identifier *&elem (String);
25   Identifier *&elem (SCM s);  
26   Scope ();
27   
28   Scope (Scope const &);
29   ~Scope ();
30   friend class Scope_iter;
31 };
32
33 class Scope_iter : public Hash_table_iter<Protected_scm,Identifier*> {
34 public:
35   Scope_iter(Scope const&);
36   String key () const;
37   SCM scm_key () const;
38 };
39
40 #endif /* SCOPE_HH */
41