]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/event-chord-iterator.hh
* lily/include/event.hh: remove file.
[lilypond.git] / lily / include / event-chord-iterator.hh
1 /*
2   event-iter.hh -- declare Event_chord_iterator
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #ifndef EVENT_ITER_HH
10 #define EVENT_ITER_HH
11
12 #include "simple-music-iterator.hh"
13
14 /**
15    Walk through a Event_chord
16 */
17 class Event_chord_iterator : public Simple_music_iterator
18 {
19   /**
20      Find a bottom notation context to deliver events to.
21   */
22   virtual Context *get_bottom_context ();
23
24   /*
25     Since Event_chord_iterator has no list-cursor internally, we
26     must use a status variable to adminstrate where we are */
27
28   enum { NONE_DONE, START_DONE, END_DONE }
29     status_;
30
31 public:
32   DECLARE_SCHEME_CALLBACK (constructor, ());
33   Event_chord_iterator ();
34   Event_chord_iterator (Event_chord_iterator const &);
35
36 protected:
37   virtual void process (Moment);
38   virtual void construct_children ();
39 };
40
41 #endif // EVENT_ITER_HH