2 context-key-manager.hh -- declare Context_key_manager
4 source file of the GNU LilyPond music typesetter
6 (c) 2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
10 #ifndef CONTEXT_KEY_MANAGER_HH
11 #define CONTEXT_KEY_MANAGER_HH
13 #include "lily-proto.hh"
18 class Context_key_manager
20 Object_key const *key_;
21 map<string, int> grob_counts_;
22 map<string, int> context_counts_;
28 Context_key_manager (Object_key const *);
29 Context_key_manager (Context_key_manager const &src);
32 void unprotect () const;
33 void gc_mark () const;
35 Object_key const *key () const { return key_; }
36 Object_key const *create_grob_key (Moment, string);
37 Object_key const *get_grob_key (Moment, string);
38 Object_key const *get_context_key (Moment, string, string);
41 #endif /* CONTEXT_KEY_MANAGER_HH */