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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 }; | 101 }; |
102 | 102 |
103 /* | 103 /* |
104 Translate music into grobs. | 104 Translate music into grobs. |
105 */ | 105 */ |
106 class Translator : public Smob<Translator> | 106 class Translator : public Smob<Translator> |
107 { | 107 { |
108 public: | 108 public: |
109 int print_smob (SCM, scm_print_state *) const; | 109 int print_smob (SCM, scm_print_state *) const; |
110 SCM mark_smob () const; | 110 SCM mark_smob () const; |
111 static const char type_p_name_[]; | 111 static const char * const type_p_name_; |
112 virtual ~Translator (); | 112 virtual ~Translator (); |
113 private: | 113 private: |
114 void init (); | 114 void init (); |
115 | 115 |
116 public: | 116 public: |
117 Context *context () const { return daddy_context_; } | 117 Context *context () const { return daddy_context_; } |
118 | 118 |
119 Translator (); | 119 Translator (); |
120 Translator (Translator const &); | 120 Translator (Translator const &); |
121 | 121 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 Moment get_event_length (Stream_event *s, Moment now); | 204 Moment get_event_length (Stream_event *s, Moment now); |
205 Moment get_event_length (Stream_event *s); | 205 Moment get_event_length (Stream_event *s); |
206 | 206 |
207 /* | 207 /* |
208 This helper is only meaningful inside listen_* methods. | 208 This helper is only meaningful inside listen_* methods. |
209 */ | 209 */ |
210 extern bool internal_event_assignment (Stream_event **old_ev, Stream_event *new_
ev, const char *function); | 210 extern bool internal_event_assignment (Stream_event **old_ev, Stream_event *new_
ev, const char *function); |
211 #define ASSIGN_EVENT_ONCE(o,n) internal_event_assignment (&o, n, __FUNCTION__) | 211 #define ASSIGN_EVENT_ONCE(o,n) internal_event_assignment (&o, n, __FUNCTION__) |
212 | 212 |
213 #endif // TRANSLATOR_HH | 213 #endif // TRANSLATOR_HH |
OLD | NEW |