]> git.donarmstrong.com Git - lilypond.git/blob - lily/grace-iterator.cc
8357e2c3ad2d70f92f8b8b75335c8cf1cd5dfbef
[lilypond.git] / lily / grace-iterator.cc
1 /*   
2   grace-music.cc --  implement Grace_music
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1999--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #include "grace-music.hh"
11 #include "grace-iterator.hh"
12
13
14 #include "global-translator.hh"
15 #include "warn.hh"
16
17
18 Grace_iterator::~Grace_iterator () 
19 {
20   //  child_iter_p_ = 0;
21 }
22
23
24 void
25 Grace_iterator::process (Moment m)
26 {
27   Moment main ;
28   main.main_part_ = - start_mom_.grace_part_ + m.grace_part_;
29   Music_wrapper_iterator::process (main);
30 }
31
32 void
33 Grace_iterator::construct_children ()
34 {
35   Music_wrapper_iterator::construct_children ();
36 }
37
38
39
40 Moment
41 Grace_iterator::pending_moment () const
42 {
43   Moment cp =Music_wrapper_iterator::pending_moment();
44
45   Moment pending;
46   pending.grace_part_ =  start_mom_.grace_part_ + cp.main_part_;
47
48   return pending;
49 }
50
51
52 IMPLEMENT_CTOR_CALLBACK (Grace_iterator);