]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/score-walker.hh
release: 0.0.49
[lilypond.git] / lily / include / score-walker.hh
1 /*
2   score-walker.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     Score* score_l_;
23     /// walkers for the individual staves.
24     Array<Staff_walker *> walker_p_arr_;
25     Array<Staff_walker *> disallow_break_walk_l_arr;
26     int disallow_break_count_;
27     int breaks_i_;
28     void reinit();
29 public:
30     bool break_allowed_b();
31     void allow_break(Staff_walker*w);
32     Score_walker(Score*);
33     ~Score_walker();
34     Moment when();
35     void operator++(int);
36     /// process staff walkers. 
37     void process();
38 };
39 #endif // SCOREWALKER_HH