]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/context-handle.hh
e32bc29cb7f8881b6d7589c4f622473396f5d8e9
[lilypond.git] / lily / include / context-handle.hh
1 /*
2   context-handle.hh -- declare  Context_handle
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1999--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef INTERPRETATION_CONTEXT_HANDLE_HH
10 #define INTERPRETATION_CONTEXT_HANDLE_HH
11 #include "lily-proto.hh"
12
13 /*
14   Rename me to Context_handle.
15 */
16
17 class Context_handle
18 {
19 public:
20   ~Context_handle ();
21   Context_handle ();
22
23   void set_context (Context *);
24   void operator = (Context_handle const &);
25   Context_handle (Context_handle const &);
26   Context *get_outlet () const;
27
28   int get_count () const;
29 private:
30   Context *outlet_;
31   void down ();
32   void up (Context *);
33 };
34
35 #endif /* INTERPRETATION_CONTEXT_HANDLE_HH */
36