2 lilypond-key.hh -- declare Lilypond_{grob,context}_key
4 source file of the GNU LilyPond music typesetter
6 (c) 2004 Han-Wen Nienhuys <hanwen@xs4all.nl>
10 #ifndef LILYPOND_KEY_HH
11 #define LILYPOND_KEY_HH
13 #include "object-key.hh"
14 #include "lily-proto.hh"
18 class Lilypond_grob_key : public Object_key
20 Object_key const *context_;
21 Moment creation_moment_;
24 // FIXME: need to figure out smart solution for
25 // the problem of creating
26 // many equally named grobs at the same time.
28 // int ambiguity_count_;
30 Lilypond_grob_key(Object_key const*context,
34 virtual int get_type () const;
35 virtual void derived_mark () const;
36 virtual int do_compare (Object_key const* a) const;
39 class Lilypond_context_key : public Object_key
41 Object_key const *parent_context_;
47 // int ambiguity_count_;
49 Lilypond_context_key (Object_key const * parent,
55 virtual int get_type () const;
56 virtual int do_compare (Object_key const* a) const;
57 virtual void derived_mark () const;
61 #endif /* LILYPOND_KEY_HH */