]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/colhpos.hh
release: 1.0.3
[lilypond.git] / lily / include / colhpos.hh
index 56f70c8506672a2bc45bb966337fb1c6cc8d5bc5..e46991dc33f33ad74bab582494d6fb3f5562ae08 100644 (file)
@@ -1,37 +1,38 @@
 /*
   colhpos.hh -- part of GNU LilyPond
 
-  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #ifndef COLHPOS_HH
 #define COLHPOS_HH
 
-#include "varray.hh"
+#include "array.hh"
 #include "lily-proto.hh"
 
 typedef Array<Paper_column*>  Line_of_cols;
 
-struct Col_hpositions {
-    Line_spacer * spacer_l_;
-    bool ugh_b_;
-    Line_of_cols error_col_l_arr_;
-    Line_of_cols cols;
-    Array<Real> config;
-    Real energy_f_;
-    bool satisfies_constraints_b_;
-
-    /* ************** */
-    void OK() const;
-    ~Col_hpositions();
-    void solve_line();
-    void approximate_solve_line();
-    /** generate a solution with no regard to idealspacings or
-      constraints.  should always work */
-    void stupid_solution();
-    Col_hpositions();
-    void add (Paper_column*c);
-    void print() const;
+struct Column_x_positions {
+  Line_spacer * spacer_l_;
+  bool ugh_b_;
+  Line_of_cols error_col_l_arr_;
+  Line_of_cols cols;
+  Array<Real> config;
+  Real energy_f_;
+  bool satisfies_constraints_b_;
+
+  /* ************** */
+  void OK() const;
+  ~Column_x_positions();
+  void solve_line();
+  void approximate_solve_line();
+  /** generate a solution with no regard to idealspacings or
+    constraints.  should always work */
+  void stupid_solution();
+  void set_stupid_solution (Vector);
+  Column_x_positions();
+  void add_paper_column (Paper_column*c);
+  void print() const;
 };