]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/score-walker.hh
release: 0.0.40
[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     void reinit();
28 public:
29     bool break_allowed_b();
30     void allow_break(Staff_walker*w);
31     Score_walker(Score*);
32     ~Score_walker();
33     Moment when();
34     void operator++(int);
35     /// process staff walkers. 
36     void process();
37 };
38 #endif // SCOREWALKER_HH