]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/p-col.hh
release: 0.0.61
[lilypond.git] / lily / include / p-col.hh
index 48d6c62a1958e7c01287d9ff25336e0bc02d2890..58206b4306c0f0dbd9382bc0627eef79bbee1b51 100644 (file)
     \end{itemize}
   */
 
-struct PCol { 
-    PointerList<Item const *> its;
-    PointerList<Spanner const *> stoppers, starters;
+class PCol { 
+public:
+    Pointer_list<Item const *> its;
+    Pointer_list<Spanner const *> stoppers, starters;
     
-
-
     /** prebreak is put before end of line.
     if broken here, then (*this) column is discarded, and prebreak
     is put at end of line, owned by Col
@@ -42,8 +41,10 @@ struct PCol {
     /// if lines are broken then this column is in #line#
     Line_of_score const *line_l_;
 
-    /// if lines are broken then this column x-coord #hpos#
-    Real hpos;
+    /** if lines are broken then this column x-coord #hpos# if not
+      known, then hpos == -1.(ugh?)  */
+
+    Real hpos;                 // should use ptr?
 
     PScore * pscore_l_;
 
@@ -68,13 +69,20 @@ struct PCol {
       signed compare on columns.
 
       @return < 0 if c1 < c2.
-    */static int compare(const PCol &c1, const PCol &c2);
-    
+    */
+    static int compare(const PCol &c1, const PCol &c2);
+    void set_rank(int);
 
     void OK() const;
     void set_breakable();
     void print()const;
 private:
+    
+    /**
+      The ranking: left is smaller than right 
+      -1 is uninitialised.
+     */
+    int rank_i_;
     PCol(PCol const&){}
 };