OLD | NEW |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 1997--2015 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 1997--2015 Han-Wen Nienhuys <hanwen@xs4all.nl> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, either version 3 of the License, or | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "item.hh" | 22 #include "item.hh" |
23 #include "music.hh" | 23 #include "music.hh" |
24 #include "spanner.hh" | 24 #include "spanner.hh" |
25 #include "stream-event.hh" | 25 #include "stream-event.hh" |
26 #include "translator-group.hh" | 26 #include "translator-group.hh" |
27 | 27 |
28 Grob_info::Grob_info (Translator *t, Grob *g) | 28 Grob_info::Grob_info (Translator *t, Grob *g) |
29 { | 29 { |
30 origin_trans_ = t; | 30 origin_trans_ = t; |
31 grob_ = g; | 31 grob_ = g; |
32 start_end_ = START; | |
33 rerouting_daddy_context_ = 0; | |
34 | 32 |
35 /* | 33 /* |
36 assert here, because this is easier to debug. | 34 assert here, because this is easier to debug. |
37 */ | 35 */ |
38 assert (g); | 36 assert (g); |
39 } | 37 } |
40 | 38 |
41 Grob_info::Grob_info () | 39 Grob_info::Grob_info () |
42 { | 40 { |
43 grob_ = 0; | 41 grob_ = 0; |
44 start_end_ = START; | |
45 origin_trans_ = 0; | 42 origin_trans_ = 0; |
46 rerouting_daddy_context_ = 0; | |
47 } | 43 } |
48 | 44 |
49 Stream_event * | 45 Stream_event * |
50 Grob_info::event_cause () const | 46 Grob_info::event_cause () const |
51 { | 47 { |
52 SCM cause = grob_->get_property ("cause"); | 48 SCM cause = grob_->get_property ("cause"); |
53 return unsmob<Stream_event> (cause); | 49 return unsmob<Stream_event> (cause); |
54 } | 50 } |
55 | 51 |
56 vector<Context *> | 52 vector<Context *> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 cause = unsmob<Grob> (cause)->get_property ("cause"); | 91 cause = unsmob<Grob> (cause)->get_property ("cause"); |
96 } | 92 } |
97 return unsmob<Stream_event> (cause); | 93 return unsmob<Stream_event> (cause); |
98 } | 94 } |
99 | 95 |
100 bool | 96 bool |
101 Grob_info::less (Grob_info i, Grob_info j) | 97 Grob_info::less (Grob_info i, Grob_info j) |
102 { | 98 { |
103 return Grob::less (i.grob (), j.grob ()); | 99 return Grob::less (i.grob (), j.grob ()); |
104 } | 100 } |
OLD | NEW |