]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/simple-music-iterator.hh
10d8e4690387f7e9df8533912c04d9e28d51b1d9
[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--2007 Han-Wen Nienhuys <hanwen@xs4all.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 class Simple_music_iterator : public Music_iterator
19 {
20 protected:
21   DECLARE_CLASSNAME(Simple_music_iterator);
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