]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/simple-music-iterator.hh
8471a4c04d37f11abfac34276d307052777938cb
[lilypond.git] / lily / include / simple-music-iterator.hh
1 /*   
2   simple-music-iterator.hh -- declare Simple_music_iterator
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c)  2000--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7  */
8
9 #ifndef SIMPLE_MUSIC_ITERATOR_HH
10 #define SIMPLE_MUSIC_ITERATOR_HH
11
12 #include "music-iterator.hh"
13
14 /*
15   Iterator for atomic music objects: events are generated at the
16   beginning and at the end of the music.
17   
18  */
19 class Simple_music_iterator : public Music_iterator
20 {
21 protected:
22
23   Moment last_processed_mom_;
24 public:
25   DECLARE_SCHEME_CALLBACK(constructor, ()); 
26   Simple_music_iterator ();
27   virtual void process (Moment);
28   virtual bool ok ()const;
29   virtual Moment pending_moment ()const;
30 };
31
32 #endif /* SIMPLE_MUSIC_ITERATOR_HH */
33