source file of the GNU LilyPond music typesetter
- (c) 1998--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1998--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include "lily-guile.hh"
class Scheme_hash_table;
+
+/*
+ Junk this almost-void class.
+ */
class Scope {
Scheme_hash_table *id_dict_;
+ Scope (Scope const &);
public:
SCM to_alist () const;
bool elem_b (String ) const;
bool elem_b (SCM s) const;
- Identifier *elem (String) const;
- Identifier *elem (SCM) const;
- void set (String, Identifier *);
- Scope ();
+
+ bool try_retrieve (SCM key, SCM *val) const;
+
+ SCM scm_elem (String) const;
+ SCM scm_elem (SCM) const;
+
+
+ void set (String, SCM);
+ Scope (Scheme_hash_table*);
- Scope (Scope const &);
- ~Scope ();
friend class Scope_iter;
};
-#if 0
-class Scope_iter {
- Hash_table_iter<Protected_scm,Identifier*> * iter_;
-public:
- void operator ++(int);
- bool ok ()const;
- Scope_iter(Scope const&);
- String key () const;
- Identifier* val () const;
- SCM scm_key () const;
-};
-
-#endif
#endif /* SCOPE_HH */