]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/global-translator.hh
* VERSION (MY_PATCH_LEVEL): make 1.7.0
[lilypond.git] / lily / include / global-translator.hh
1 /*
2   global-translator.hh -- declare Global_translator
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef GLOBAL_TRANSLATOR_HH
11 #define GLOBAL_TRANSLATOR_HH
12
13 #include "translator-group.hh"
14 #include "moment.hh"
15 #include "pqueue.hh"
16
17 class Global_translator : public virtual Translator_group
18 {
19   PQueue<Moment> extra_mom_pq_;
20 public:
21   VIRTUAL_COPY_CONS (Translator);
22   Moment final_mom_;
23   Moment prev_mom_;
24   Moment now_mom_;
25   Global_translator ();
26
27   int get_moments_left () const;
28   Moment sneaky_insert_extra_moment (Moment);
29   void add_moment_to_process (Moment);
30   void run_iterator_on_me (Music_iterator*);
31
32   void apply_finalizations ();
33   void add_finalization (SCM);
34   
35   virtual Music_output *get_output ();     
36   virtual void prepare (Moment);
37   virtual void one_time_step ();
38   virtual void finish ();
39   virtual void start ();
40
41   virtual Moment now_mom () const;
42
43   
44 protected:
45
46 };
47
48
49
50 #endif // GLOBAL_TRANSLATOR_HH