]> git.donarmstrong.com Git - lilypond.git/blob - hdr/scorewalker.hh
0bfc99137416a4b9e0905cb026d0aa2d264fde65
[lilypond.git] / hdr / scorewalker.hh
1 /*
2   scorewalker.hh -- declare Score_walker
3
4   source file of the LilyPond music typesetter
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9
10 #ifndef SCOREWALKER_HH
11 #define SCOREWALKER_HH
12 #include "pcursor.hh"
13 #include "proto.hh"
14 #include "varray.hh"
15
16
17 /**
18   walk through the score_columns, and while doing so, walk all staffs in a score.
19   */
20 class Score_walker : public PCursor<Score_column *>
21 {
22     /// walkers for the individual staves.
23     Array<Staff_walker *> walker_p_arr_;
24     Array<Staff_walker *> disallow_break_walk_l_arr;
25     int disallow_break_count_;
26     void reinit();
27 public:
28     void allow_break(Staff_walker*w);
29     Score_walker(Score*);
30     ~Score_walker();
31     Moment when();
32     void operator++(int);
33     /// process staff walkers. 
34     void process();
35 };
36 #endif // SCOREWALKER_HH