]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/break-algorithm.hh
''
[lilypond.git] / lily / include / break-algorithm.hh
index 00da3940ce7a0df67eb45a3007e8fde4723e0b86..67d0c022974b205d20bbb8f0453e8815eadfb263 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--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
@@ -18,6 +18,8 @@
 
 /** Class representation of an algorithm which decides where to put
   the column, and where to break lines.
+
+  JUNKME.
   
   */
 class Break_algorithm {
@@ -26,31 +28,28 @@ protected:
   Real linewidth_f_;
 
   /// search all pcols which are breakable.
-  Link_array<Paper_column> find_breaks() const;
+  Link_array<Grob> find_breaks () const;
 
-  Array<int> find_break_indices() const;
+  Array<int> find_break_indices () const;
     
 
   /// helper: solve for the columns in #curline#.
   void solve_line (Column_x_positions*) const;
 
-  /// helper: approximate the energyv
-  void approximate_solve_line (Column_x_positions*) const;
-
   /// does curline fit on the paper?    
-  bool feasible (Link_array<Paper_column>) const;
+  bool feasible (Link_array<Grob> const &) const;
     
 
-  Simple_spacer* generate_spacing_problem (Link_array<Paper_column>, Interval) const;
+  Simple_spacer* generate_spacing_problem (Link_array<Grob> const &, 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