]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/break-algorithm.hh
* lily/translator.cc (derived_mark): new function.
[lilypond.git] / lily / include / break-algorithm.hh
index 57fd8cdb920dbdac08e61d552753427ab872b153..9729d9ca99be02121482b84432c2626d0381e762 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1996--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1996--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
   */
 class Break_algorithm {
 protected:
-  Paper_score *pscore_l_;
-  Real linewidth_f_;
+  Paper_score *pscore_;
+  Real linewidth_;
 
-  /// search all pcols which are breakable.
-  Link_array<Grob> find_breaks() const;
-
-  Array<int> find_break_indices() const;
-    
-
-  /// helper: solve for the columns in #curline#.
+  Link_array<Grob> find_breaks () const;
+  Array<int> find_break_indices () const;
   void solve_line (Column_x_positions*) const;
+  bool feasible (Link_array<Grob> const &) const;
 
-  /// does curline fit on the paper?    
-  bool feasible (Link_array<Grob>) const;
-    
+  Simple_spacer_wrapper* generate_spacing_problem (Link_array<Grob> const &, Interval) const;
 
-  Simple_spacer* generate_spacing_problem (Link_array<Grob>, Interval) const;
-
-  virtual Array<Column_x_positions> do_solve() const=0;
+  virtual Array<Column_x_positions> do_solve () const=0;
 
 public:
-  Simple_spacer* (*get_line_spacer)();
-  Break_algorithm();
+  Simple_spacer* (*get_line_spacer) ();
+  Break_algorithm ();
   void set_pscore (Paper_score*);
-
-  Array<Column_x_positions> solve() const;
+  Array<Column_x_positions> solve () const;
 };
 
 #endif // BREAK_HH