2 object-key.hh -- declare Object_key
4 source file of the GNU LilyPond music typesetter
6 (c) 2004 Han-Wen Nienhuys <hanwen@xs4all.nl>
16 Object_keys are read-only values, suitable for storing references to
17 transient objects (such as grobs or contexts) on disk.
19 In the future, they might also act as handles for external processes
20 requesting notation to be drawn.
24 DECLARE_SMOBS(Object_key,);
28 virtual void derived_mark () const;
29 virtual int get_type () const;
30 virtual int do_compare (Object_key const * other) const;
33 int compare (Object_key const *other) const;
36 enum Object_key_type {
43 class Copied_key : public Object_key
47 Object_key const * original_;
51 virtual void derived_mark () const;
52 virtual int get_type () const;
53 virtual int do_compare (Object_key const * other) const;
56 Copied_key (Object_key const*, int);
59 DECLARE_UNSMOB(Object_key, key);
61 #endif /* OBJECT_KEY_HH */